.NET API Reference

API Reference

Explore the .NET Framework and .NET Core APIs.

System
System.Collections.Generic
System.Object

Description

Provides fundamental properties and methods for all classes in the .NET Framework.

Members

System.Object.ToString() Method
string ToString()

Returns a string that represents the current object.

System.Object.Equals(object obj) Method
bool Equals(object obj)

Determines whether the specified object is equal to the current object.

Parameters

  • obj: The object to compare with the current object.
System.String

Description

Represents text as a sequence of characters. Strings are immutable.

Members

System.String.Length Property
int Length { get; }

Gets the number of characters in the current String object.

System.String.IsNullOrEmpty(string value) Method
static bool IsNullOrEmpty(string value)

Indicates whether the specified string is null or an empty string ("").

Parameters

  • value: The string to test.

Returns

  • true if the value parameter is null or an empty string; otherwise, false.
System.Collections.Generic.List<T>

Description

Represents a strongly typed list of objects that can be accessed by index. Provides methods to search, sort, and manipulate lists.

Generic Type Parameters

T: The type of elements in the list.

Members

System.Collections.Generic.List<T>.Count Property
int Count { get; }

Gets the number of elements contained in the List<T>.

System.Collections.Generic.List<T>.Add(T item) Method
void Add(T item)

Adds an object to the end of the List<T>.

Parameters

  • item: The object to be added to the end of the List<T>. The value can be null for reference types.
System.Collections.Generic.List<T>.RemoveAt(int index) Method
void RemoveAt(int index)

Removes the element at the specified index of the List<T>.

Parameters

  • index: The zero-based index of the element to remove.
System.ConsoleColor

Description

Specifies the colors that can be used for the foreground and background of the console.

Members

  • Black 0
  • Blue 1
  • Green 2
  • Cyan 3
  • Red 4
  • Magenta 5
  • Yellow 6
  • White 7
  • Gray 8
  • DarkBlue 9
  • DarkGreen 10
  • DarkCyan 11
  • DarkRed 12
  • DarkMagenta 13
  • DarkYellow 14
  • DarkGray 15