Class EventProperty<TValue>
- Namespace
- Core.Events
- Assembly
- Core.dll
public class EventProperty<TValue> : EventProperty, IEventProperty<TValue>, IEventProperty, IMultiRegisterEvent, IEvent, IMultiRegisterEvent<TValue>, IEvent<TValue> where TValue : IEquatable<TValue>
Type Parameters
TValue
- Inheritance
-
object
EventProperty<TValue>
- Implements
-
- Extension Methods
-
Constructors
EventProperty()
EventProperty(TValue)
public EventProperty(TValue value)
Parameters
value TValue
Properties
RegisterCount
public override int RegisterCount { get; }
Property Value
- int
Value
public TValue Value { get; set; }
Property Value
- TValue
Methods
Dispose()
public override void Dispose()
Equals(TValue)
public bool Equals(TValue otherValue)
Parameters
otherValue TValue
Returns
- bool
IsRegistered(Action)
public override bool IsRegistered(Action callback)
Parameters
callback Action
Returns
- bool
IsRegistered(Action<TValue>)
public bool IsRegistered(Action<TValue> callback)
Parameters
callback Action<TValue>
Returns
- bool
Register(Action)
public override void Register(Action callback)
Parameters
callback Action
Register(Action<TValue>)
public void Register(Action<TValue> callback)
Parameters
callback Action<TValue>
ToString()
public override string ToString()
Returns
- string
TryRegister(Action)
public override bool TryRegister(Action callback)
Parameters
callback Action
Returns
- bool
TryRegister(Action<TValue>)
public bool TryRegister(Action<TValue> callback)
Parameters
callback Action<TValue>
Returns
- bool
TryUnregister(Action)
public override bool TryUnregister(Action callback)
Parameters
callback Action
Returns
- bool
TryUnregister(Action<TValue>)
public bool TryUnregister(Action<TValue> callback)
Parameters
callback Action<TValue>
Returns
- bool
Unregister(Action)
public override void Unregister(Action callback)
Parameters
callback Action
Unregister(Action<TValue>)
public void Unregister(Action<TValue> callback)
Parameters
callback Action<TValue>
Operators
operator ==(EventProperty<TValue>, TValue)
public static bool operator ==(EventProperty<TValue> property, TValue otherValue)
Parameters
property EventProperty<TValue>
otherValue TValue
Returns
- bool
implicit operator TValue(EventProperty<TValue>)
public static implicit operator TValue(EventProperty<TValue> rhs)
Parameters
rhs EventProperty<TValue>
Returns
- TValue
operator !=(EventProperty<TValue>, TValue)
public static bool operator !=(EventProperty<TValue> property, TValue otherValue)
Parameters
property EventProperty<TValue>
otherValue TValue
Returns
- bool