DirectoryInfo directory;
public string Name {
get { return this.directory.Name; }
set { this.directory.Name = value; }
}
안녕하세요. 나는이 코드를 C#에 가지고있다. 작동하지 않습니다.이 오류가 발생합니다.C# 속성 FileSystem
Property or Indexer System.Io.FileSystemInfo.Name cannot be assigned to -- it's read only.
어떻게해야합니까?
무엇을하려고합니까? 'DirectoryInfo'는 디렉토리에 대한 정보를 얻습니다. 가리키는 디렉토리를 변경하려고합니까? –