.NET API Reference
Welcome to the .NET API Documentation
This portal provides comprehensive documentation for the .NET Framework and .NET Core (now unified as .NET). Explore namespaces, classes, methods, properties, and more to build powerful applications.
Use the navigation pane on the left to browse through the API hierarchy, or use the search bar to quickly find specific types or members.
System Namespace
Provides fundamental classes and base types that define commonly used value and reference data types, events and event handlers, exceptions, and converters.
System.Collections Namespace
Contains interfaces and classes that define collections of objects, such as lists, queues, hash tables, and dictionaries.
System.Collections.Generic Namespace
Contains interfaces and classes that define generic collections, which allow developers to create strongly typed collections that improve type safety and performance.
Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists.
Type: Class
- Count Property
- Add(T item) Method
- Remove(T item) Method
- Contains(T item) Method
Represents a collection of key/value pairs that are organized by key. Provides efficient lookup by key.
Type: Class
- Keys Property
- Values Property
- Add(TKey key, TValue value) Method
- ContainsKey(TKey key) Method
- Remove(TKey key) Method
System.IO Namespace
Contains types for reading and writing files and data streams, and for the .NET infrastructure that supports these capabilities.
Provides static methods for the creation, copying, deletion, moving, and opening of files.
Type: Class
- Exists(string path) Method
- ReadAllText(string path) Method
- WriteAllText(string path, string contents) Method
Implements a TextReader that reads characters from a byte stream in a particular encoding.
Type: Class
- ReadLine() Method
- ReadToEnd() Method
- Peek() Method
System.Linq Namespace
Provides classes and interfaces that support LINQ (Language Integrated Query), enabling you to write code that looks like declarative queries in a variety of data sources.
Provides extension methods for the IEnumerable<T> interface to support LINQ queries.
Type: Class
- Where<TSource>(this IEnumerable<TSource> source, Func<TSource, bool> predicate) Method
- Select<TSource, TResult>(this IEnumerable<TSource> source, Func<TSource, TResult> selector) Method
- OrderBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector) Method
Microsoft Namespace
Contains types and namespaces developed by Microsoft for various .NET technologies.
Microsoft.Extensions.DependencyInjection Namespace
Provides types for configuring and managing dependency injection services.
A collection of service descriptors used to configure an IServiceProvider.
Type: Class
- AddTransient<TService>() Method
- AddScoped<TService>() Method
- AddSingleton<TService>() Method