Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
ICastableHelpers.cs
Go to the documentation of this file.
2
4
5internal static class ICastableHelpers
6{
7 internal static bool IsInstanceOfInterface(ICastable castable, RuntimeType type, [NotNullWhen(true)] out Exception castError)
8 {
9 return castable.IsInstanceOfInterface(new RuntimeTypeHandle(type), out castError);
10 }
11
12 internal static RuntimeType GetImplType(ICastable castable, RuntimeType interfaceType)
13 {
14 return castable.GetImplType(new RuntimeTypeHandle(interfaceType)).GetRuntimeType();
15 }
16}
static bool IsInstanceOfInterface(ICastable castable, RuntimeType type, [NotNullWhen(true)] out Exception castError)
static RuntimeType GetImplType(ICastable castable, RuntimeType interfaceType)
bool IsInstanceOfInterface(RuntimeTypeHandle interfaceType, [NotNullWhen(true)] out Exception? castError)
RuntimeTypeHandle GetImplType(RuntimeTypeHandle interfaceType)