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

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

            return(kv.value);
        }