是关于自定义数据的简单实现,你可以这样使用。
今天写的代码,可惜没有用上,但想想可能以后还能用上吧。//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功能。
详细的代码如下:

相关文章:

  • 2022-02-03
  • 2021-07-28
  • 2021-04-27
  • 2022-12-23
  • 2021-05-22
  • 2021-12-12
  • 2021-08-14
  • 2021-06-18
猜你喜欢
  • 2021-10-04
  • 2022-03-05
  • 2022-12-23
  • 2021-06-20
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案