Пример #1
0
        public DependsOnMethod <T> Call(Action <T> callback)
        {
            var dependsOnMethod = new DependsOnMethod <T>(callback);

            this.Methods.Add(dependsOnMethod);

            return(dependsOnMethod);
        }
Пример #2
0
 private static void OnAnyPropertyInSubscriptionChanges(DependsOnMethod <T> me, object objectThatChanged)
 {
     me._callback((T)objectThatChanged);
 }