System.Runtime Namespace
Namespace: System
Assembly: System.Runtime (in System.Runtime.dll)
Provides fundamental types and base classes that define cushioned or fundamental types used by all .NET programs.
Members
Object
public class ObjectProvides functionality, services, and derived types, for all types and objects in the .NET Framework.
Summary
- Represents the root of all types in the .NET type system.
- Provides fundamental methods such as
Equals
,GetHashCode
, andToString
.
ValueType
public abstract class ValueTypeThe base type for all value types, which are types that encapsulate single values.
Summary
- Represents a base class for value types.
- Value types are stored directly on the stack or inline within their containing object.
Enum
public abstract class EnumThe base class for all enumeration types.
Summary
- Represents a base class for enumeration types.
- Enumerations provide a way to define named constants for integral values.
Boolean
public struct BooleanRepresents a Boolean value (true or false).
Summary
- Represents a logical value that can be either true or false.
- The underlying type is a byte.
Byte
public struct ByteRepresents an 8-bit unsigned integer.
Summary
- Represents an 8-bit unsigned integer ranging from 0 to 255.
- Commonly used for raw byte data or small counters.
SByte
public struct SByteRepresents a signed 8-bit integer.
Summary
- Represents a signed 8-bit integer ranging from -128 to 127.
Char
public struct CharRepresents a single 16-bit Unicode character.
Summary
- Represents a single character in the Unicode standard.
- Used for text manipulation and processing.
Decimal
public struct DecimalRepresents an arbitrary-precision decimal number.
Summary
- Represents a decimal number with high precision, suitable for financial calculations.
- Has a range from -7.9228162514264337593543950335 to 7.9228162514264337593543950335.
Double
public struct DoubleRepresents a double-precision floating-point number.
Summary
- Represents a 64-bit floating-point number according to the IEEE 754 standard.
- Provides a large range and reasonable precision for scientific and general-purpose calculations.