Click or drag to resize

SelfAccumulateableEventArgs Class

Base class for all event args that can accumulate state. They can accumulate even instances of themself, by calling the Add(SelfAccumulateableEventArgs) function. Overrides for GetHashCode and Equals(Object) ensure that only a single instance is contained in a HashSet.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    Altaxo.MainSelfAccumulateableEventArgs
      More

Namespace: Altaxo.Main
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public abstract class SelfAccumulateableEventArgs : EventArgs

The SelfAccumulateableEventArgs type exposes the following members.

Constructors
 NameDescription
Protected methodSelfAccumulateableEventArgsInitializes a new instance of the SelfAccumulateableEventArgs class
Top
Methods
 NameDescription
Public methodAdd Adds the specified event args e.
Public methodEquals Override to ensure that only one instance of SelfAccumulateableEventArgs is contained in the accumulated event args collection. You have to override Equals in the following way: two instances of the same type, which can be merged together, should return true (and GetHashCode should then return the same value).
(Overrides ObjectEquals(Object))
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCode Override to ensure that only one instance of SelfAccumulateableEventArgs is contained in the accumulated event args collection. You have to override GetHashCode in the following way: two instances of the same type, which can be merged together, should return the same hash code (and Equals should then return true).
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also
Inheritance Hierarchy