Microsoft Namespace
This documentation covers the core APIs within the Microsoft namespace and its sub-namespaces, providing fundamental building blocks for .NET applications.
Classes
Interfaces
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.
Classes
System.Collections.Generic Namespace
Provides interfaces and classes that define generic collections, which allow developers to create collections that help prevent runtime type errors and improve performance by enabling collection element type checking at compile time.
Classes
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.
Classes
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.
Classes
System.Text Namespace
Contains fundamental classes for text manipulation, including character encoding, regular expressions, and string builders.
Classes
Interfaces
System.Threading Namespace
Provides types that represent and manage threads, synchronization primitives, and thread-safe collections.
Classes
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.