public static class ValueExtensionsReference documentation and code samples for the Google Cloud Datastore v1 API class ValueExtensions.
Extension methods on Value.
Namespace
Google.Cloud.Datastore.V1Assembly
Google.Cloud.Datastore.V1.dll
Methods
OrNull(Value)
public static Value OrNull(this Value value)Returns value if it has a kind other than NullValue,
or null otherwise. If value is null, this method returns null.
| Parameter | |
|---|---|
| Name | Description |
value |
ValueA Value reference, which may be null. |
| Returns | |
|---|---|
| Type | Description |
Value |
|
The reverse of this operation would simply be value ?? Value.ForNull() using the
null-coalescing operator.