A helper method to explicitly cast the value streamed back via Bolt to a local type, with default fallback value.
public static T As<T>(this object value, T defaultValue)
Parameters
value
object
The value that streamed back via Bolt protocol, e.g.Properties.
defaultValue
T
Returns this value if the the value is null
The value of specified return type.
T
Supports for the following types (or nullable version of the following types if applies): short, int, long, float, double, sbyte, ushort, uint, ulong, byte, char, bool, string, List<T>, INode, IRelationship, IPath. Undefined support for other types that are not listed above. No support for user-defined types, e.g. Person, Movie.
A helper method to explicitly cast the value streamed back via Bolt to a local type.
public static T As<T>(this object value)
Parameters
value
object
The value that streamed back via Bolt protocol, e.g.Properties.
The value of specified return type.
T
Supports for the following types (or nullable version of the following types if applies): short, int, long, float, double, sbyte, ushort, uint, ulong, byte, char, bool, string, List<T>, INode, IRelationship, IPath. Undefined support for other types that are not listed above. No support for user-defined types, e.g. Person, Movie.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4