从文档中:
包含字符串值“true”的字符串,表示已打开卷影复制;或“false”表示已关闭卷影复制。
从 1.1 开始就是这样。任何人都可以解释一下吗?
我对 getter 和 setter 进行了反思:
public string ShadowCopyFiles
{
get
{
return this.Value[8];
}
set
{
if ((value != null) && (string.Compare(value, "true", StringComparison.OrdinalIgnoreCase) == 0))
{
this.Value[8] = value;
}
else
{
this.Value[8] = null;
}
}
}
//The referenced Value property...
internal string[] Value
{
get
{
if (this._Entries == null)
{
this._Entries = new string[0x10];
}
return this._Entries;
}
}
private string[] _Entries;
所以也许Value
数组会产生一个更简单的复制构造函数或什么?