Microsoft Namespace

This documentation covers the core APIs within the Microsoft namespace and its sub-namespaces, providing fundamental building blocks for .NET applications.

Example Usage: Basic Class


// Example of using a class from the Microsoft.Net.Sdk.Web namespace
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;

var builder = WebApplication.CreateBuilder(new string[] {});

// Add services to the container.
builder.Services.AddControllersWithViews();

var app = builder.Build();

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
    app.UseDeveloperExceptionPage();
}

app.UseRouting();

app.UseAuthorization();

app.MapControllerRoute(
    name: "default",
    pattern: "{controller=Home}/{action=Index}/{id?});

app.Run();
                

System Namespace

The System namespace is the foundational namespace for .NET applications, containing fundamental types and base classes.

System.Collections Namespace

Provides interfaces and classes that define how reference and value collections can be used, manipulated, and queried. This namespace includes non-generic collections.

System.IO Namespace

Provides types that allow reading and writing to and from different kinds of storage media. This namespace includes types for file streams, memory streams, and stream readers/writers.

System.Linq Namespace

Provides classes and interfaces that support LINQ (Language Integrated Query) functionality. LINQ allows you to write queries against any data source that implements the IEnumerable<T> or IQueryable<T> interfaces.

System.Net Namespace

Provides a simple, cross-platform API for network communication. It enables you to build network-aware applications.

System.Text Namespace

Contains fundamental classes for text manipulation, including character encoding, regular expressions, and string builders.

System.Xml Namespace

Provides classes for processing XML documents. This includes reading, writing, and manipulating XML data.

System.Xml.Linq Namespace

Provides classes for LINQ to XML, enabling you to query and manipulate XML data in a unified way using LINQ.