String.Empty 필드
정의
빈 문자열을 나타냅니다.Represents the empty string. 이 필드는 읽기 전용입니다.This field is read-only.
public: static initonly System::String ^ Empty;
public static readonly string Empty;
staticval mutable Empty : string
Public Shared ReadOnly Empty As String
필드 값
설명
이 필드의 값은 길이가 0 인 문자열 ""입니다.The value of this field is the zero-length string, "".
애플리케이션 코드에서이 필드는 가장 일반적으로 할당에 문자열 변수를 빈 문자열로 초기화에 사용 됩니다.In application code, this field is most commonly used in assignments to initialize a string variable to an empty string. 문자열의 값이 또는 인지 테스트 하려면 null
String.Empty 메서드를 사용 IsNullOrEmpty 합니다.To test whether the value of a string is either null
or String.Empty, use the IsNullOrEmpty method.