예제 #1
0
            private ChangingHandlers([NotNull] BindableChangingAsync <T> @async)
            {
                if (@async == null)
                {
                    throw new ArgumentNullException(nameof(@async));
                }

                this.sync  = null;
                this.async = async;
            }
예제 #2
0
 public static BindResult BindOnChangingAsync <T>([NotNull] this Bindable <T> bindable, BindableChangingAsync <T> handler)
 {
     bindable.ChangingAsync += handler;
     return(new BindResult(null, () => bindable.ChangingAsync -= handler));
 }
예제 #3
0
 public int CompareTo(BindableChangingAsync <T> other)
 {
     return(Comparer <BindableChangingAsync <T> > .Default.Compare(this.@async, other));
 }