是否可以在反序列化數據成員時指定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