Sphyrnidae Common Library  2.0.1
Shared Utilities/Library
Sphyrnidae.Common.Extensions.ObjectExtensions Class Reference

Object custom methods More...

Static Public Member Functions

static bool IsDefault< T > (this T value)
 Checks if an object is a default type More...
 
static bool IsPopulated< T > (this T value)
 Checks if an object is populated with a non-default value More...
 

Detailed Description

Object custom methods

Member Function Documentation

◆ IsDefault< T >()

static bool Sphyrnidae.Common.Extensions.ObjectExtensions.IsDefault< T > ( this T  value)
static

Checks if an object is a default type

Template Parameters
TThe type of item you are checking
Parameters
valueThe item being checked

IsDefault is always the opposite of IsPopulated

Returns
True if it is the default value, false otherwise

◆ IsPopulated< T >()

static bool Sphyrnidae.Common.Extensions.ObjectExtensions.IsPopulated< T > ( this T  value)
static

Checks if an object is populated with a non-default value

Parameters
valueThe item being checked

IsDefault is always the opposite of IsPopulated

Returns
False if it is the default value, true otherwise

The documentation for this class was generated from the following file: