C# Data Type
데이터타입이란 문자형, 숫자형, 날짜형, 참/거짓형등의 각 자료형태의 고유한 성격을 담는 그릇들로 C#을 포함한 모든 .NET 프로그래밍 언어는 .NET의 Common Type System에 정의된 .NET 데이타 타입을 사용한다.
C# 데이터 타입과 크기, 범위 참조 URL : Data Type Summary - Visual Basic | Microsoft Docs
Data Type Summary - Visual Basic
Learn more about: Data Type Summary (Visual Basic)
docs.microsoft.com
마이크로소프트 데이터 타입 요약 하지만 기본적으로 사용하는 데이터 타입은 한정해서 사용하는 경우가 대다수이며 해당되는 데이터 타입은 색상으로 표기하니 기본 데이터 타입이라도 숙지해두는 것이 좋다.(프로그램어를 꿈꾸는 분들은 전부를 숙지해야겠죠 ^^;)
Visual Basic | Common language runtime type structure |
Nominal storage allocation |
Boolean | Boolean | 구현 플랫폼에 따라 다름 |
Byte | Byte | 1 byte |
Char (single character) | Char | 2 bytes |
Date | DateTime | 8 bytes |
Decimal | Decimal | 16 bytes |
Double (double-precision floating-point) |
Double | 8 bytes |
Integer | Int32 | 4 bytes |
Long (long integer) | Int64 | 8 bytes |
Object | Object (class) | 4 bytes on 32-bit platform 8 bytes on 64-bit platform |
SByte | SByte | 1 byte |
Short (short integer) |
Int16 | 2 bytes |
Single (single-precision floating-point) |
Single | 4 bytes |
String (variable-length) |
String (class) | 구현 플랫폼에 따라 다름 |
UInteger | UInt32 | 4 bytes |
ULong | UInt64 | 8 bytes |
User-Defined (structure) |
(inherits from ValueType) | 구현 플랫폼에 따라 다름 |
UShort | UInt16 | 2 bytes |
'C# > 개념 정리' 카테고리의 다른 글
C# 프로그래밍 언어 (0) | 2022.01.19 |
---|