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)
| 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. |
no test coverage detected