Table of Contents

Method ThrowIfInvalid

Namespace
MonoMod.Core.Platforms
Assembly
MonoMod.Core.dll

ThrowIfInvalid(AbiArgumentMapResult, bool)

Throws if result does not have MappingIsValid set.
public static void ThrowIfInvalid(this AbiArgumentMapResult result, bool allowIncompatibleReturnTypes = false)

Parameters

result AbiArgumentMapResult
The AbiArgumentMapResult to check.
allowIncompatibleReturnTypes bool
true to allow incompatible return types; false to them as invalid.

Remarks

The message of the thrown exception encodes information stored in the other bits of result automatically.

Exceptions

InvalidOperationException
Thrown if result does not have MappingIsValid set with an informative message.