System.Int32(int)와 같은 기본 타입을 비롯한 모든 타입은 궁극적으로 System.Object(object)라는 기본 타입에서 파생된다.
.NET Framework에서 제공하는 이 타입 계층 구조를 CTS라고 하는데, CTS의 각 타입은 Value 또는 Reference 타입으로 정의되어 있다.
기본적으로 struct 키워드를 사용해서 정의한 타입은 Value타입이고, class 키워드를 사용하여 정의한 형식은 Reference타입이라고 생각하면 된다.
.NET Framework에서 제공하는 이 타입 계층 구조를 CTS라고 하는데, CTS의 각 타입은 Value 또는 Reference 타입으로 정의되어 있다.
기본적으로 struct 키워드를 사용해서 정의한 타입은 Value타입이고, class 키워드를 사용하여 정의한 형식은 Reference타입이라고 생각하면 된다.

'Language > C#' 카테고리의 다른 글
Codility #1 BinGap (0) | 2017.02.15 |
---|---|
Type » Nullable Type (0) | 2012.08.17 |
How to: Resolve Ambiguous Times (0) | 2011.01.14 |
Converting Times Between Time Zones (0) | 2011.01.14 |
Converting Between DateTime and DateTimeOffset (0) | 2011.01.14 |
How to: Use Time Zones in Date and Time Arithmetic (0) | 2011.01.14 |
Performing Arithmetic Operations with Dates and Times (0) | 2011.01.14 |
How to: Restore Time Zones from an Embedded Resource (0) | 2011.01.14 |
How to: Save Time Zones to an Embedded Resource (0) | 2011.01.14 |
Saving and Restoring Time Zones (0) | 2011.01.14 |