Page 20 - DCAP312_WEB_TECHNOLOGIES_II
P. 20
Web Technologies-II
Notes • Defines rules that languages must follow, which helps ensure that objects written in
different languages can interact with each other.
The Common Type System can be divided into two general categories of types, Reference type
and Value type each of which is further divided into subcategories
1.5.4 Common Type System Architecture
The .NET type system has two unlike kinds of types specifically Value types and situation types.
Value types directly enclose the data, and instances of value types are either billed on the stack
or allocated inline in a structure. Value types can be built-in (implemented by the runtime),
user-defined, or enumerations.
The core value types supported by the .NET platform reside within the root of the System
namespace. There types are often referred to as the .NET “Primitive Types”.
They include:
• Boolean
• Byte
• Char
• DateTime
• Decimal
• Double
• Guid
• Int16
• Int32
• Int64
• SByte
• Single
• Timespan
Reference types store a reference to the value’s memory address, and are allocated on the heap.
Reference types can be self describing types, pointer types, or interface types. The type of a
reference type can be determined from values of self describing types. Self describing types are
further split into arrays and class types.
Figure 1.6: Kind of Types
14 LOVELY PROFESSIONAL UNIVERSITY