Development
[C#] string vs String
devbible
2017. 9. 7. 11:46
C# 에서 string 과 String 의 차이점?
사실 이 두개는 똑같다.
string 은 String 의 별칭일뿐. 뭘 쓰더라도 동일하게 동작한다.
가독상 프로잭트에서 둘중 하나로 통일해서 쓰는게 좋다.
아래는 전체 별칭 목록.
object: System.Object string: System.String bool: System.Boolean byte: System.Byte sbyte: System.SByte short: System.Int16 ushort: System.UInt16 int: System.Int32 uint: System.UInt32 long: System.Int64 ulong: System.UInt64 float: System.Single double: System.Double decimal: System.Decimal char: System.Char
[작성] devbible.tistory.com