Show / Hide Table of Contents

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
PropertySubscriptionBase
NoOpPropertySubscription
Implements
IPropertySubscription
ISubscription
Inherited Members
PropertySubscriptionBase.Unsubscribe()
PropertySubscriptionBase.Subject
PropertySubscriptionBase.PropertyName
PropertySubscriptionBase.IsAlive
Namespace: Eco.Shared.View
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
PropertySubscriptionBase.Method

Target

Declaration
public override object Target { get; }
Property Value
Type Description
System.Object
Overrides
PropertySubscriptionBase.Target

Methods

Invoke()

Declaration
public override void Invoke()
Overrides
PropertySubscriptionBase.Invoke()

Implements

IPropertySubscription
ISubscription

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾