예제 #1
0
 public int CompareTo(KeyValue <KeyType, ValueType> other)
 {
     return(Comparer <KeyType> .Default.Compare(this.key, other.key));
 }
예제 #2
0
        object INonInvasiveTreeInspection.GetValue(object node)
        {
            KeyValue <KeyType, ValueType> kv = (KeyValue <KeyType, ValueType>)((INonInvasiveTreeInspection)inner).GetKey(node);

            return(kv.value);
        }
예제 #3
0
        public ValueType GetValue(KeyType key)
        {
            KeyValue <KeyType, ValueType> kv = inner.GetKey(new KeyValue <KeyType, ValueType>(key));

            return(kv.value);
        }