/// <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) { return(val.Equals(other.val)); }
/// <summary> /// Initialize a new instance with an initial value from <paramref name="basis"/>. /// </summary> /// <param name="APIversion">The requested API version.</param> /// <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(int APIversion, EventHandler handler, HandlerElement <T> basis) : base(APIversion, handler) { val = basis.val; }