Table of Contents

Class IncludeExpression

Namespace
JsonApiDotNetCore.Queries.Expressions
Assembly
JsonApiDotNetCore.dll

Represents an inclusion tree, resulting from text such as: owner,articles.revisions .

[PublicAPI]
public class IncludeExpression : QueryExpression
Inheritance
IncludeExpression
Inherited Members

Constructors

IncludeExpression(IImmutableSet<IncludeElementExpression>)

public IncludeExpression(IImmutableSet<IncludeElementExpression> elements)

Parameters

elements IImmutableSet<IncludeElementExpression>

Fields

Empty

public static readonly IncludeExpression Empty

Field Value

IncludeExpression

Properties

Elements

The direct children of this tree. Use Empty if there are no children.

public IImmutableSet<IncludeElementExpression> Elements { get; }

Property Value

IImmutableSet<IncludeElementExpression>

Methods

Accept<TArgument, TResult>(QueryExpressionVisitor<TArgument, TResult>, TArgument)

public override TResult Accept<TArgument, TResult>(QueryExpressionVisitor<TArgument, TResult> visitor, TArgument argument)

Parameters

visitor QueryExpressionVisitor<TArgument, TResult>
argument TArgument

Returns

TResult

Type Parameters

TArgument
TResult

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToFullString()

public override string ToFullString()

Returns

string

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.