기본 데이터 형식 Windows 런타임

이 표에서는 Windows 런타임 지원하는 기본 데이터 형식을 나열하고 C#, Visual Basic 및 C++의 해당 형식을 나타냅니다.

데이터 형식 JavaScript C# VB C++
Boolean Boolean bool Boolean bool
Byte Number 바이트 Byte unsigned char
Char String char Char unsigned char
Char16 String char Char wchar_t
DateTime 날짜 DateTimeOffset DateTimeOffset DateTime
double Number double double double
Guid String Guid Guid Guid
Int16 Number short Short short
Int32 Number int Integer int
Int64 Number long Long __int64
개체 개체 object 개체 Object^
Point Point Point Point Point
Rect Rect Rect Rect Rect
단일 Number float Single float
크기 크기 크기 크기 크기
String String string String String^
TimeSpan Number TimeSpan TimeSpan TimeSpan
UInt8 Number 바이트 Byte unsigned char
UInt16 Number ushort UShort unsigned short
UInt32 Number uint UInteger unsigned int
UInt64 Number ulong ULong unsigned __int64
Uri Uri Uri Uri Uri^
Void Undefined void Void void

 

다음 표에서는 Windows 런타임 데이터 형식에 해당하는 .NET 형식을 나타냅니다.

Windows 런타임 .NET
Boolean System.Boolean
Byte System.Byte
Char System.Char
Char16 System.Char
DateTime System.DateTimeOffset
double System.Double
Guid System.Guid
Int16 System.Int16
Int32 System.Int32
Int64 System.Int64
Object System.Object
단일 System.Single
String System.String
TimeSpan System.TimeSpan
UInt8 System.Byte
UInt16 System.UInt16
UInt32 System.UInt32
UInt64 System.UInt64
Uri System.Uri
Void System.Void