C# Class Underscore.Utility.ObjectComponent

Inheritance: IObjectComponent
Datei anzeigen Open project: konkked/Underscore.cs Class Usage Examples

Public Methods

Method Description
IsTruthy ( object target ) : bool

Returns true if an object is truthy, if the value is not the default value of the that type then returns true with the exception of strings which return false if empty, whitespace or null

Private Methods

Method Description
IsNumber ( object o ) : bool

Method Details

IsTruthy() public method

Returns true if an object is truthy, if the value is not the default value of the that type then returns true with the exception of strings which return false if empty, whitespace or null
public IsTruthy ( object target ) : bool
target object
return bool