为什么AppDomainSetup.ShadowCopyFiles是一个字符串?
从文档:
包含字符串值“true”的String,表示启用了卷影复制;或“false”表示阴影复制已关闭。
从1.1开始就是这样。谁能摆脱任何光明?
我反射了吸气剂和制定者以获得良好的衡量标准:
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
数组会产生一个更简单的复制构造函数或什么?
没有找到相关结果
已邀请:
1 个回复
感秆暴壳