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

System.Reflection.Emit.ILGenerator.ThrowException Method

Helper routine to throw an exception. [Edit]

public virtual void ThrowException (Type excType)

Parameters

excType
The exception type to throw. [Edit]

Remarks

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

Requirements

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