An extension to AHandlerElement, for simple data types (such as uint).
For an example of use, see SimpleList{T}.
Inheritance: AHandlerElement, IEquatable>
Example #1
0
 /// <summary>
 /// Indicates whether the current object is equal to another object of the same type.
 /// </summary>
 /// <param name="other">An object to compare with this object.</param>
 /// <returns>true if the current object is equal to the other parameter; otherwise, false.</returns>
 public bool Equals(HandlerElement<T> other) => _val.Equals(other._val);
Example #2
0
 /// <summary>
 /// Initialize a new instance with an initial value from <paramref name="basis"/>.
 /// </summary>
 /// <param name="handler">The <see cref="EventHandler"/> delegate to invoke if the <see cref="AHandlerElement"/> changes.</param>
 /// <param name="basis">Element containing the initial value for instance.</param>
 public HandlerElement(EventHandler handler, HandlerElement<T> basis) : base(handler) { _val = basis._val; }