Пример #1
0
        override public bool Equals(Object other)
        {
            if (other == null)
            {
                return(false);
            }
            AbstractValue <T> ot = (other as AbstractValue <T>);

            if (ot == null)
            {
                return(false);
            }
            return(EqualityComparer <T> .Default.Equals(Current, ot.Current));
        }
Пример #2
0
 public MappedValue(AbstractValue <T> outer, Func <T, M> func)
 {
     _outer = outer;
     _func  = func;
 }
Пример #3
0
 public Connection(AbstractValue <T> value, OnChange <T> listener)
 {
     _value    = value;
     _listener = listener;
 }