478 {
479 get
480 {
482 {
483 throw new ArgumentNullException("key");
484 }
485 SortedSet<KeyValuePair<TKey, TValue>>.Node node =
_set.FindNode(
new KeyValuePair<TKey, TValue>(
key,
default(TValue)));
486 if (node == null)
487 {
489 }
490 return node.Item.Value;
491 }
492 set
493 {
495 {
496 throw new ArgumentNullException("key");
497 }
498 SortedSet<KeyValuePair<TKey, TValue>>.Node node =
_set.FindNode(
new KeyValuePair<TKey, TValue>(
key,
default(TValue)));
499 if (node == null)
500 {
502 return;
503 }
504 node.Item =
new KeyValuePair<TKey, TValue>(node.Item.Key,
value);
505 _set.UpdateVersion();
506 }
507 }
void Add(TKey key, TValue value)
readonly TreeSet< KeyValuePair< TKey, TValue > > _set
static string Format(string resourceFormat, object p1)
static string Arg_KeyNotFoundWithKey