Friday, 29 October 2010

C# System Types

The type system in .NET or Common Type System (CTS) divides types into 2 categories:
  • Values Types
  • Reference Types
Value Types

These are simple data types that directly contain their data, for example:
  • Integers
  • Floats
  • Enums
  • Structs
Reference Types

These types store references to objects.  Reference type variables have the ability to refer to the same data, so two variables can point to same object and the object be manipulated by performing operations of both variables.  Examples include:
  • Classes
  • Interfaces
  • Delegates
  • Arrays

0 comments:

Post a Comment

 

Popular Posts

developer-express Copyright © 2009 Black Nero Blogspot Templatesis Designed by Ipietoon Sponsored by Online Business Journal