A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://neo4j.com/docs/api/dotnet-driver/current/api/Neo4j.Driver.ValueExtensions.As.html below:

Method As
Namespace
Neo4j.Driver
Assembly
Neo4j.Driver.dll
As<T>(object, T)

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

Returns
T

The value of specified return type.

Type Parameters
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.

As<T>(object)

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.

Returns
T

The value of specified return type.

Type Parameters
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