20 throw new ArgumentNullException(nameof(v),
"Value cannot be null.");
37 return $
"QueryLiteral({Unwrap})";
55 public override bool Equals(
object? other)
59 if (otherQuery is
null)
64 if (ReferenceEquals(
this, otherQuery))
71 return Unwrap == otherLiteral.Unwrap;
83 return Unwrap.GetHashCode();
94 return Equals(left, right);
105 return !
Equals(left, right);
Represents a literal part of an FQL query. This class is used for embedding raw string values directl...
override bool Equals(object? other)
Determines whether the specified object is equal to the current QueryLiteral.
override int GetHashCode()
The default hash function.
QueryLiteral(string v)
Initializes a new instance of the QueryLiteral class with the specified value.
static bool operator==(QueryLiteral left, QueryLiteral right)
Determines whether two specified instances of QueryLiteral are equal.
string Unwrap
Gets the string value of the query literal.
static bool operator!=(QueryLiteral left, QueryLiteral right)
Determines whether two specified instances of QueryLiteral are not equal.
void Serialize(MappingContext ctx, Utf8FaunaWriter writer)
Serializes the query literal.
override string ToString()
Returns a string that represents the current QueryLiteral.
Provides functionality for writing data in a streaming manner to a buffer or a stream.
void WriteStringValue(string value)
Writes a string value as a tagged element.
Represents the base interface for a query fragment used for FQL query construction.