Mono Class Library: System.Reflection.Emit.ILGenerator Overview | Members

System.Reflection.Emit.ILGenerator.ThrowException Method

Helper routine to throw an exception.

public virtual void ThrowException (Type excType)

Parameters

excType
The exception type to throw.

Remarks

This will create an instance of the exception specified by the excType and throw that.

Requirements

Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0