Show / Hide Table of Contents

Struct QueryResult

Represents the result of a game state query.

Implements
IEquatable<QueryResult>
Inherited Members
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: Microsoft.XboxStudios.GameStateTracker
Assembly: GameStateTracker.Abstractions.dll
Syntax
public readonly struct QueryResult : IEquatable<QueryResult>
Remarks

Initializes a new instance of the QueryResult struct.

Constructors

View Source

QueryResult(in ObjectInfo, KeyValuePair<string, object>)

Represents the result of a game state query.

Declaration
public QueryResult(in ObjectInfo key, KeyValuePair<string, object> value = default)
Parameters
Type Name Description
ObjectInfo key

The object description.

KeyValuePair<string, object> value

The property name and value.

Remarks

Initializes a new instance of the QueryResult struct.

Properties

View Source

Key

Gets the description of the queried object.

Declaration
public ObjectInfo Key { get; }
Property Value
Type Description
ObjectInfo
View Source

Value

Gets the property name and value.

Declaration
public KeyValuePair<string, object> Value { get; }
Property Value
Type Description
KeyValuePair<string, object>

Methods

View Source

Equals(QueryResult)

Determines if the query results are equal.

Declaration
public bool Equals(QueryResult other)
Parameters
Type Name Description
QueryResult other

The query result to compare to.

Returns
Type Description
bool

True if the query results are not equal.

View Source

Equals(object?)

Indicates whether this instance and a specified object are equal.

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj

The object to compare with the current instance.

Returns
Type Description
bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

Overrides
ValueType.Equals(object)
View Source

GetHashCode()

Returns the hash code for this instance.

Declaration
public override int GetHashCode()
Returns
Type Description
int

A 32-bit signed integer that is the hash code for this instance.

Overrides
ValueType.GetHashCode()
View Source

ToString()

Returns the fully qualified type name of this instance.

Declaration
public override string ToString()
Returns
Type Description
string

The fully qualified type name.

Overrides
ValueType.ToString()

Operators

View Source

operator ==(QueryResult, QueryResult)

Determines if the query results are equal to each other.

Declaration
public static bool operator ==(QueryResult left, QueryResult right)
Parameters
Type Name Description
QueryResult left

The first query result to compare.

QueryResult right

The second query result to compare.

Returns
Type Description
bool

True if the query results are equal.

View Source

operator !=(QueryResult, QueryResult)

Determines if the query results are not equal to each other.

Declaration
public static bool operator !=(QueryResult left, QueryResult right)
Parameters
Type Name Description
QueryResult left

The first query result to compare.

QueryResult right

The second query result to compare.

Returns
Type Description
bool

True if the query results are not equal.

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX