API Reference - System Namespace
The System namespace contains fundamental classes and base types that define
Classes
Interfaces
Class Object
Provides functionality for all classes: the base class of all types in the .NET Framework.
Methods
ToString()
Returns a string that represents the current object.
Equals(Object obj)
Determines whether the specified object is equal to the current object.
Class String
Represents text as a sequence of UTF-16 code units. The String class is an immutable type, which means that once an object of the String class is created, you cannot change its value.
Properties
Length
Gets the number of characters in the current String object.
Methods
Concat(String str0, String str1)
Concatenates the string representation of the values of two specified String objects.
Class Exception
Represents errors that occur during execution. This is the base class for all exception classes.
Properties
Message
Gets a message that describes the current exception.
Struct Int32
Represents a 32-bit signed integer.
Struct Boolean
Represents a Boolean value (true or false).
Struct DateTime
Represents an instance in time, expressed as a date and time of day.
Struct Guid
Represents a globally unique identifier (GUID).
Class Console
Provides access to the standard input, output, and error streams for console applications.
Methods
WriteLine(String value)
Writes the specified string value, followed by the current line terminator, to the standard output stream.
Class Math
Provides fundamental mathematical operations and constants.
Fields
PI
Represents the ratio of the circumference of a circle to its diameter, specified as π.
Methods
Sin(Double a)
Returns the sine of the specified angle.
Class Type
Provides information about the number, order, and attributes of members of a type. It is used for reflection.
Interface IDisposable
Provides a mechanism for releasing unmanaged resources.
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Interface IEnumerable
Exposes the enumerator, which supports a simple iteration over a non-generic collection.
Methods
GetEnumerator()
Returns an enumerator that iterates through a collection.
Interface IComparable
Represents the ability to compare the current object with another object of the same type.
Methods
CompareTo(Object obj)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Interface ISerializable
Enables a class to save and restore its own state.
Methods
GetObjectData(SerializationInfo info, StreamingContext context)
Populates a SerializationInfo object with the data required to serialize the object.