Class NoOpPropertySubscription
No operation Eco.Shared.View.PropertySubscription. Will do nothing on callback.
May be used as replacement for removed subscription during subscription list processing. I.e. we have list [sub1, sub2] and sub2 removed in sub1 callback.
If we just remove it then list iteration will fail with System.IndexOutOfRangeException when accessing index 1 of removed sub2.
To avoid this we can just replace removed subscription with NoOpPropertySubscription until list processing finish and then remove all no-op subscriptions from the list.
Inheritance
System.Object
NoOpPropertySubscription
Assembly: Eco.Shared.dll
Syntax
public sealed class NoOpPropertySubscription : PropertySubscriptionBase, IPropertySubscription, ISubscription
Constructors
NoOpPropertySubscription()
Declaration
public NoOpPropertySubscription()
Properties
Method
Declaration
public override MethodInfo Method { get; }
Property Value
Type |
Description |
System.Reflection.MethodInfo |
|
Overrides
Target
Declaration
public override object Target { get; }
Property Value
Type |
Description |
System.Object |
|
Overrides
Methods
Invoke()
Declaration
public override void Invoke()
Overrides
Implements
Extension Methods