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
Returns
- bool
true
if the specified instance is subclass of or exactly the specified type, otherwisefalse
.
IsEqualTo(object, object)
Determines whether this instance is equal to the other
.
public static bool IsEqualTo(this object instance, object other)
Parameters
Returns
- bool
true
this instance is equal to theother
, otherwisefalse
.
IsNegative(object)
Determines whether this instance is negative.
public static bool IsNegative(this object instance)
Parameters
instance
objectThe instance.
Returns
- bool
true
if the specified instance is negative, otherwisefalse
.
IsNull(object)
Determines whether this instance is null
.
public static bool IsNull(this object instance)
Parameters
instance
objectThe instance.
Returns
- bool
true
if the specified object isnull
; otherwise,false
.
IsOne(object)
Determines whether this instance equals one.
public static bool IsOne(this object instance)
Parameters
instance
objectThe instance.
Returns
- bool
true
if the specified object equals one, otherwisefalse
.
IsPositive(object)
Determines whether this instance is positive.
public static bool IsPositive(this object instance)
Parameters
instance
objectThe instance.
Returns
- bool
true
if the specified instance is positive, otherwisefalse
.
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
Returns
- bool
true
if a type of this instance exactly equals the specified type, otherwisefalse
.
IsZero(object)
Determines whether this instance equals zero.
public static bool IsZero(this object instance)
Parameters
instance
objectThe instance.
Returns
- bool
true
if the specified object equals zero, otherwisefalse
.