今天写的代码,可惜没有用上,但想想可能以后还能用上吧。

是关于自定义数据的简单实现,你可以这样使用。
//define ConnectionString property.
CustomProperty<string> ConnectionStringProperty =
    
new CustomProperty<string>("ConnectionStringProperty");
//create customData
CustomData data = new CustomData();
data.SetValue
<string>(ConnectionStringProperty, "test");
string v = data.GetValue<string>(ConnectionStringProperty);
这个代码主要还是演示如何使用DebuggerDisplayDebuggerTypeProxy功能。
详细的代码如下:
CustomProperty

CustomData
原文地址:https://www.cnblogs.com/tansm/p/1099151.html