是关于自定义数据的简单实现,你可以这样使用。 //define ConnectionString property.CustomProperty<string> ConnectionStringProperty = new CustomProperty<string>("ConnectionStringProperty");//create customDataCustomData data = new CustomData();data.SetValue<string>(ConnectionStringProperty, "test");string v = data.GetValue<string>(ConnectionStringProperty); 这个代码主要还是演示如何使用DebuggerDisplay和DebuggerTypeProxy功能。 详细的代码如下: 相关文章: 2022-02-03 2021-07-28 2021-04-27 2022-12-23 2021-05-22 2021-12-12 2021-08-14 2021-06-18