Table of Contents

Class TypePredicates

Namespace
Garyon.Reflection
Assembly
Garyon.dll

Contains a collection of predicates to apply on Type instances. Also contains several aliases for other scattered functions.

public static class TypePredicates
Inheritance
TypePredicates
Inherited Members

Methods

IsAbstractClass(Type)

Determines whether the given type is an abstract class.

public static bool IsAbstractClass(Type type)

Parameters

type Type

The type.

Returns

bool

true when type represents an abstract class; otherwise false.

IsClass(Type)

Determines whether the given type is a class.

public static bool IsClass(Type type)

Parameters

type Type

The type.

Returns

bool

true when type represents a class; otherwise false.

IsInterface(Type)

Determines whether the given type is an interface.

public static bool IsInterface(Type type)

Parameters

type Type

The type.

Returns

bool

true when type represents an interface; otherwise false.

IsNonAbstractClass(Type)

Determines whether the given type is a non-abstract class.

public static bool IsNonAbstractClass(Type type)

Parameters

type Type

The type.

Returns

bool

true when type represents a class that is not abstract; otherwise false.

IsStatic(Type)

Determines whether the given type is a static class.

public static bool IsStatic(Type type)

Parameters

type Type

The type.

Returns

bool

true when type represents a static class; otherwise false.

IsValueType(Type)

Determines whether the given type is a value type.

public static bool IsValueType(Type type)

Parameters

type Type

The type.

Returns

bool

true when type represents a value type; otherwise false.