Table of Contents

Class Object_CB_Extension

Namespace
System
Assembly
Cobilas.Core.dll
public static class Object_CB_Extension
Inheritance
Object_CB_Extension
Inherited Members

Methods

CompareType(object, Type)

Compares the object's type to a specified type.

public static bool CompareType(this object O, Type type)

Parameters

O object

The target object of comparison.

type Type

The specified comparison type.

Returns

bool

CompareType(object, params Type[])

Compares the object's type to a specified list of types.

public static bool CompareType(this object O, params Type[] types)

Parameters

O object

The target object of comparison.

types Type[]

The specified comparison types.

Returns

bool

CompareTypeAndSubType(object, Type)

Compares class type and the class it inherits.

public static bool CompareTypeAndSubType(this object O, Type type)

Parameters

O object
type Type

Returns

bool

CompareTypeAndSubType(object, Type, bool)

Compares class type and the class it inherits.

public static bool CompareTypeAndSubType(this object O, Type type, bool IncludeInterface)

Parameters

O object
type Type
IncludeInterface bool

Returns

bool

CompareTypeAndSubType<T>(object)

Compares class type and the class it inherits.

public static bool CompareTypeAndSubType<T>(this object O)

Parameters

O object

Returns

bool

Type Parameters

T

CompareTypeAndSubType<T>(object, bool)

Compares class type and the class it inherits.

public static bool CompareTypeAndSubType<T>(this object O, bool IncludeInterface)

Parameters

O object
IncludeInterface bool

Returns

bool

Type Parameters

T

CompareType<T>(object)

Compares the object's type with a specified generic type.

public static bool CompareType<T>(this object O)

Parameters

O object

The target object of comparison.

Returns

bool

Type Parameters

T

The generic comparison type specified.