Table of Contents

Method IsCompatible

Namespace
MonoMod.Utils
Assembly
MonoMod.Utils.dll

IsCompatible(Type, Type)

Determine if two types are compatible with each other (f.e. object with string, or enums with their underlying integer type).
public static bool IsCompatible(this Type type, Type other)

Parameters

type Type
The first type.
other Type
The second type.

Returns

bool
True if both types are compatible with each other, false otherwise.