public int CompareTo(KeyValue <KeyType, ValueType> other) { return(Comparer <KeyType> .Default.Compare(this.key, other.key)); }
object INonInvasiveTreeInspection.GetValue(object node) { KeyValue <KeyType, ValueType> kv = (KeyValue <KeyType, ValueType>)((INonInvasiveTreeInspection)inner).GetKey(node); return(kv.value); }
public ValueType GetValue(KeyType key) { KeyValue <KeyType, ValueType> kv = inner.GetKey(new KeyValue <KeyType, ValueType>(key)); return(kv.value); }