MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / HasInterface

Method HasInterface

Source/Editor/Scripting/ScriptType.cs:1054–1061  ·  view source on GitHub ↗

Determines whether the current type implements the specified interface type. Checks this type, its base classes and implemented interfaces base interfaces too. The type of the interface to check. True if this type implements the given interface, otherwise false.

(ScriptType c)

Source from the content-addressed store, hash-verified

1052 /// <param name="c">The type of the interface to check.</param>
1053 /// <returns>True if this type implements the given interface, otherwise false.</returns>
1054 public bool HasInterface(ScriptType c)
1055 {
1056 if (c._managed != null && _managed != null)
1057 return c._managed.IsAssignableFrom(_managed);
1058 if (_custom != null)
1059 return _custom.HasInterface(c);
1060 return false;
1061 }
1062
1063 /// <summary>
1064 /// Determines whether the specified object is an instance of the current type.

Callers 1

IsAssignableFromMethod · 0.45

Calls 1

IsAssignableFromMethod · 0.45

Tested by

no test coverage detected