Extensions of
Nullable
types.
- Namespace
- Songhay
.Extensions - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["NullableExtensions"]
class Type type-node
Syntax
public static class NullableExtensions
Methods
Name | Return Value | Summary |
---|---|---|
Is |
bool |
Determines whether the specified type
can be assigned to
System.Runtime.Serialization.ISerializable .
static
|
Round |
decimal |
Rounds the specified decimal.
static
|
ThrowWhenNullOrEmpty |
void |
Throws an
ArgumentNullException
when the specified enumerable is null or empty.
static
|
Throw |
void |
Throws an
ArgumentNullException
when System.String.IsNullOrWhiteSpace(System.String) is true .
static
|
ToObjectOrDbNull |
object |
Boxes the nullable in
object
or returns DBNull .
static
|
To |
T |
Returns the non-null value of the specified, nullable reference type
or throws an
ArgumentNullException
when the value is null.
static
|
ToValueOrThrow |
T |
Returns the non-null value of the specified value type
or throws an
ArgumentNullException
when the value is null.
static
|