Click or drag to resize
DigitalRuneGameEventCollectionAddT Method (String)
Adds an event with the given name.

Namespace: DigitalRune.Game
Assembly: DigitalRune.Game (in DigitalRune.Game.dll) Version: 1.4.0.0 (1.4.0.14427)
Syntax
public void Add<T>(
	string name
)
where T : EventArgs

Parameters

name
Type: SystemString
The event name.

Type Parameters

T
The type of the event arguments.
Exceptions
ExceptionCondition
ArgumentNullExceptionname is .
ArgumentExceptionname is an empty string.
ArgumentException The event is not defined. Events must be defined with CreateEventT(String, String, String, T) before they can be added.
See Also