Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ ImplementInterface()

bool System.Type.ImplementInterface ( Type ifaceType)
inlinepackageinherited

Definition at line 1600 of file Type.cs.

1601 {
1602 Type type = this;
1603 while (type != null)
1604 {
1605 Type[] interfaces = type.GetInterfaces();
1606 if (interfaces != null)
1607 {
1608 for (int i = 0; i < interfaces.Length; i++)
1609 {
1610 if (interfaces[i] == ifaceType || (interfaces[i] != null && interfaces[i].ImplementInterface(ifaceType)))
1611 {
1612 return true;
1613 }
1614 }
1615 }
1616 type = type.BaseType;
1617 }
1618 return false;
1619 }
bool ImplementInterface(Type ifaceType)
Definition Type.cs:1600

References System.Type.BaseType, System.Type.GetInterfaces(), System.Type.ImplementInterface(), and System.type.

Referenced by System.Type.ImplementInterface(), System.RuntimeType.IsAssignableFrom(), System.Type.IsAssignableFrom(), and System.Reflection.TypeInfo.IsAssignableFrom().