コード例 #1
0
        public void Add(KeyValuePair <string, string> item)
        {
            var collection = (ICollection <KeyValuePair <string, string> >) this.dictionary;
            var pair       = new KeyValuePair <string, string>(LocalPropertyBag.GetNormalized(item.Key),
                                                               LocalPropertyBag.GetNormalized(item.Value));

            collection.Add(pair);
        }
コード例 #2
0
 public void Add(string key, string value)
 {
     // This is what SharePoint does
     this.dictionary.Add(LocalPropertyBag.GetNormalized(key), LocalPropertyBag.GetNormalized(value));
 }