String.Empty 필드

정의

빈 문자열을 나타냅니다. 이 필드는 읽기 전용입니다.

public: static initonly System::String ^ Empty;
public static readonly string Empty;
 staticval mutable Empty : string
Public Shared ReadOnly Empty As String 

필드 값

설명

이 필드의 값은 길이가 0인 문자열 ""입니다.

애플리케이션 코드에서이 필드는 가장 일반적으로 할당에 문자열 변수를 빈 문자열로 초기화에 사용 됩니다. 문자열 null 값이 또는 String.Empty인지 테스트하려면 메서드를 IsNullOrEmpty 사용합니다.

적용 대상

추가 정보