34 Serializer.Serialize(ctx, writer,
Unwrap);
50 public override bool Equals(
object? o)
52 if (ReferenceEquals(
this, o))
70 hash *=
Unwrap.GetHashCode();
80 public override string ToString() => $
"QueryVal({Unwrap})";
90 if (ReferenceEquals(left, right))
95 if (left is
null || right is
null)
100 return left.
Equals(right);
111 return !(left == right);
123 return (o.
Unwrap is
null) ? true :
false;
Represents the abstract base class for constructing FQL queries.
Represents a generic value holder for FQL queries. This class allows embedding values of various type...
override void Serialize(MappingContext ctx, Utf8FaunaWriter writer)
Serializes the query value.
override bool Equals(object? o)
Determines whether the specified object is equal to the current QueryVal.
static bool operator!=(QueryVal left, QueryVal right)
Determines whether two specified instances of QueryVal are not equal.
override bool Equals(Query? o)
Determines whether the specified QueryVal is equal to the current QueryVal.
override int GetHashCode()
The default hash function.
static bool operator==(QueryVal left, QueryVal right)
Determines whether two specified instances of QueryVal are equal.
QueryVal(object? v)
Initializes a new instance of the QueryVal class with the specified value.
object? Unwrap
Gets the value of the specified type represented in the query.
override string ToString()
Returns a string that represents the current QueryVal.
Provides functionality for writing data in a streaming manner to a buffer or a stream.
void WriteFieldName(string value)
Writes a field name for the next value.
void WriteEndObject()
Writes the end of an object.
void WriteStartObject()
Writes the beginning of an object.
Represents the base interface for a query fragment used for FQL query construction.