본문 바로가기

프로그래밍언어/C#

공용 형식 시스템(Common Type System)

728x90
반응형

공용 형식 시스템(Common Type System)

공통 타입 시스템(Common Type System, CTS)은 자료형 정의 및 특정 자료형 값이 어떻게 컴퓨터 메모리에 표현되는지를 규정하는 표준이다.

다양한 언어로 작성된 개체 간에 상호 작용할 수 있도록 언어에서 따라야 할 규칙을 정의합니다.

 

Common Type System(CTS)

 

.NET에서 제공하는 기본 형식

클래스 이름  C# 형식   C++ 형식  비주얼 베이직 형식 
 System.Byte  byte  unsigned char  Byte
 System.SByte  sbyte  char  SByte
 System.Int16  short  short  Short
 System.Int32  int  int 또는 long  Integer
 System.Int64  long  __int64  Long
 System.UInt16  ushort  unsigned short  UShort
 System.UInt32  uint  unsigned int   또는 
 unsigned long
 UInteger
 System.UInt64  ulong  unsigned __int64  ULong
 System.Single  float  float  Single
 System.Double  double  double  Double
 System.Boolean  bool  bool  Boolean
 System.Char  char  wchar_t  Char
 System..Decimal  decimal  Decimal  Decimal
 System.IntPtr  없음  없음  없음
 System.UIntPtr  없음  없음  없음
 System.Object  object  Object*  Object
 System..String  string  String*  String

 

 

728x90
반응형

'프로그래밍언어 > C#' 카테고리의 다른 글

닷넷이란? ( .NET)  (0) 2021.06.23