Table of Contents

Class ObjectExtensions

Namespace
Heleonix.Extensions
Assembly
Heleonix.Extensions.dll

Provides functionality to work with objects.

public static class ObjectExtensions
Inheritance
ObjectExtensions
Inherited Members

Methods

IsAs(object, Type)

Determines whether this instance is subclass of or exactly the specified type.

public static bool IsAs(this object instance, Type type)

Parameters

instance object

The instance.

type Type

The type.

Returns

bool

true if the specified instance is subclass of or exactly the specified type, otherwise false.

IsEqualTo(object, object)

Determines whether this instance is equal to the other.

public static bool IsEqualTo(this object instance, object other)

Parameters

instance object

The instance.

other object

The other instance.

Returns

bool

true this instance is equal to the other, otherwise false.

IsNegative(object)

Determines whether this instance is negative.

public static bool IsNegative(this object instance)

Parameters

instance object

The instance.

Returns

bool

true if the specified instance is negative, otherwise false.

IsNull(object)

Determines whether this instance is null.

public static bool IsNull(this object instance)

Parameters

instance object

The instance.

Returns

bool

true if the specified object is null; otherwise, false.

IsOne(object)

Determines whether this instance equals one.

public static bool IsOne(this object instance)

Parameters

instance object

The instance.

Returns

bool

true if the specified object equals one, otherwise false.

IsPositive(object)

Determines whether this instance is positive.

public static bool IsPositive(this object instance)

Parameters

instance object

The instance.

Returns

bool

true if the specified instance is positive, otherwise false.

IsTypeOf(object, Type)

Determines whether a type of this instance exactly equals the specified type.

public static bool IsTypeOf(this object instance, Type type)

Parameters

instance object

The instance.

type Type

The type.

Returns

bool

true if a type of this instance exactly equals the specified type, otherwise false.

IsZero(object)

Determines whether this instance equals zero.

public static bool IsZero(this object instance)

Parameters

instance object

The instance.

Returns

bool

true if the specified object equals zero, otherwise false.