2012年6月11日

C# Reference Types

啊就是有人要搞不清楚, 又誤用版本, 是能怎麼辦 ╮( ̄_ ̄")╭
MSDN都說得很清楚啦~


Visual Studio 2005
  • declare reference types:
    • class
    • interface
    • delegate

  • built-in reference types:
    • object
    • string

Visual Studio 2008
  • declare reference types:
    • class
    • interface
    • delegate

  • built-in reference types:
    • object
    • string

Visual Studio 2010
  • declare reference types:
    • class
    • interface
    • delegate

  • built-in reference types:
    • dynamic
    • object
    • string

Visual Studio 2012
  • declare reference types:
    • class
    • interface
    • delegate

  • built-in reference types:
    • dynamic
    • object
    • string


C# Value Types:
‧enum
‧struct
‧simple types

C# Built-In Types:
‧simple types
‧string
‧object

C# built-in simple types:
C# Type.NET Framework Type
boolSystem.Boolean
byteSystem.Byte
sbyteSystem.SByte
charSystem.Char
decimalSystem.Decimal
doubleSystem.Double
floatSystem.Single
intSystem.Int32
uintSystem.UInt32
longSystem.Int64
ulongSystem.UInt64
shortSystem.Int16
ushortSystem.UInt16

沒有留言: