TypeExtensions

Namespace: ASPSecurityKit
Assembly: ASPSecurityKit.dll

Summary

Static Type extension methods for general, reusable utility operations.

Methods

Implements(type)

Summary

Determines what form(s) of enumerable have been implemented by the specified type.

Returns

A Tuple`2(bool GenericIEnumerable, bool IEnumerable) that tells what forms, if any, of enumerable have been implemented by the specified type.

Parameters
Name Type Description
type System.Type The type to inspect.

Implements<TInterface>(type)

Summary

Determines whether the specified type implements the given interface.

Returns

true if the specified type implements the given interface; otherwise, false.

Parameters
Name Type Description
type System.Type The type to inspect.
Generic Types
Name Description
TInterface Type of the interface to search for.

Implements(type,interfaceType)

Summary

Determines whether the specified type implements the given interface.

Returns

true if the specified type implements the given interface; otherwise, false.

Parameters
Name Type Description
type System.Type The type to inspect.
interfaceType System.Type Type of the interface to search for.