13
從documentation:爲什麼AppDomainSetup.ShadowCopyFiles一個字符串?
一個包含字符串值「真」,以指示覆制的陰影的字符串被接通;或「false」表示陰影複製已關閉。
而且由於它的1.1一直這樣。任何人都可以擺脫光線嗎?
我reflector'd良好的措施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
陣列相生一個更簡單的拷貝構造函數或東西嗎?