TypeExtensions Methods

The TypeExtensions type exposes the following members.

Methods


  Name Description
Public method Static member Implements(Type, Type)
Returns true if type implements/inherits moreGeneralType.

Examples


typeof(object[]).Implements(typeof(IEnumerable)) --> true

Public method Static member Implements<(Of <<'(T>)>>)(Type)
Returns true if type implements/inherits T.

Examples


typeof(object[]).Implements<IEnumerable>() --> true