是否可以在反序列化数据成员时指定WCF序列化引擎使用哪个构造函数?覆盖WCF DataMember的字典构造函数
例如:我想使用此构造函数来创建不区分大小写的字典,而不创建从Dictionary继承的新类。
[DataMember]
Dictionary<string, string> Values { get; set; }
// Values should be created with this constructor
new Dictionary<string, string>(StringComparer.InvariantCultureIgnoreCase);
我很害怕这个。感谢您的确认。 – chilltemp 2011-02-07 22:31:15