.NET API Reference

Namespaces

System Namespace

Provides fundamental classes and base types that define primitive data types, event access, exception classes, math functionalities, and more.

Types

System.String

Represents text as a sequence of UTF-16 code units. This is a reference type.

Members

Example
string message = "Hello, World!";
Console.WriteLine(message.Length); // Output: 13
Console.WriteLine(string.IsNullOrEmpty("")); // Output: True
Console.WriteLine(message.Contains("World")); // Output: True
Console.WriteLine(message.ToUpper()); // Output: HELLO, WORLD!

System.Console

Provides standard input, output, and error streams, along with other members that can be used to query information about the current environment or to manage the runtime.

Members

Example
Console.WriteLine("Enter your name:");
string name = Console.ReadLine();
Console.WriteLine($"Hello, {name}!");