📅  最后修改于: 2022-03-11 14:49:22.406000             🧑  作者: Mango
public class BetterException : Exception
{
protected T GetValue([CallerMemberNameAttribute] string propertyName = "")
{
return (T)Data[propertyName];
}
protected void SetValue(T value, [CallerMemberNameAttribute] string propertyName = "")
{
Data[propertyName] = value;
}
}