35 var ser =
Unwrap is not
null ? Serializer.Generate(ctx,
Unwrap.GetType()) : DynamicSerializer.Singleton;
36 ser.Serialize(ctx, writer,
Unwrap);
52 public override bool Equals(
object? o)
54 if (ReferenceEquals(
this, o))
72 hash *=
Unwrap.GetHashCode();
82 public override string ToString() => $
"QueryVal({Unwrap})";
92 if (ReferenceEquals(left, right))
97 if (left is
null || right is
null)
102 return left.
Equals(right);
113 return !(left == right);
125 return (o.
Unwrap is
null) ? true :
false;
A class representing the mapping context to be used during serialization and deserialization.
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.