public static void StepInOrThrow( this ICyclicAccessGuard <AccessTrace> guard, AccessContext context, object sender, string propertyName ) { var trace = new AccessTrace() { Context = context, Sender = sender, PropertyName = propertyName }; guard.StepInOrThrow(trace); }
public static bool TryStepIn( this ICyclicAccessGuard <AccessTrace> guard, AccessContext context, object sender, string propertyName ) { var trace = new AccessTrace() { Context = context, Sender = sender, PropertyName = propertyName }; return(guard.TryStepIn(trace)); }
/// <summary> /// Initializes a new instance of the <see cref="T:UsePropertyBase"/> class. /// </summary> internal UsedPropertyBase(string name, UsedSubproperty child, TraversalOptions traversalOptions) { if (name == null) { throw new ArgumentNullException("name"); } this.Child = child; this.Name = name; this.tracedItems = new List <INotifyPropertyChanged>(); this.TraversalOptions = traversalOptions; this.cyclicAccessGuard = new CyclicAccessGuard <AccessTrace>(1, cyclicAccessRecord); }
public static void StepInOrThrow(this ICyclicAccessGuard <AccessTrace> guard) { guard.StepInOrThrow(null); }
public static bool TryStepIn(this ICyclicAccessGuard <AccessTrace> guard) { return(guard.TryStepIn(null)); }