Click or drag to resize
DigitalRuneGameEventCollectionGetT Method (String)
Gets the 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 GameEvent<T> Get<T>(
	string name
)
where T : EventArgs

Parameters

name
Type: SystemString
The name of the event.

Type Parameters

T
The type of the event arguments.

Return Value

Type: GameEventT
The game object event.
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 used.
See Also