Implicit Operator

Moq 2.6

Provides support for attaching a MockedEvent<(Of <(TEventArgs>)>) to a generic EventHandler event.

Namespace:  Moq
Assembly:  Moq (in Moq.dll) Version: 2.6.1014.1 (2.6.0.0)

Syntax

C#
public static implicit operator EventHandler<TEventArgs> (
	MockedEvent<TEventArgs> mockEvent
)

Parameters

mockEvent
Type: Moq..::.MockedEvent<(Of <(TEventArgs>)>)
Event to convert.

See Also