Table of Contents

Class ValueHoldingRemoteValue<T>

Namespace
WebDriverBiDi.Script
Assembly
WebDriverBiDi.dll

Abstract base record for a remote value for a specific type, providing type-safe access to the value and the ability to convert to a local value for use as an argument for script execution on the remote end.

public abstract record ValueHoldingRemoteValue<T> : ValueHoldingRemoteValue, IEquatable<RemoteValue>, IEquatable<ValueHoldingRemoteValue>, ITypeSafeRemoteValue<T>, IEquatable<ValueHoldingRemoteValue<T>>

Type Parameters

T

The native .NET type of the remote value.

Inheritance
ValueHoldingRemoteValue<T>
Implements
Derived
Inherited Members

Constructors

ValueHoldingRemoteValue(RemoteValueType)

Initializes a new instance of the ValueHoldingRemoteValue<T> class.

protected ValueHoldingRemoteValue(RemoteValueType type)

Parameters

type RemoteValueType

The type of the remote value.

ValueHoldingRemoteValue(ValueHoldingRemoteValue<T>)

protected ValueHoldingRemoteValue(ValueHoldingRemoteValue<T> original)

Parameters

original ValueHoldingRemoteValue<T>

Properties

EqualityContract

protected override Type EqualityContract { get; }

Property Value

Type

Value

Gets the value of this remote value converted to the native .NET type.

public abstract T Value { get; }

Property Value

T

Remarks

This value is guaranteed to be non-null, even if the type T allows null values.

ValueObject

Gets the value of this remote value as an object.

public override object ValueObject { get; }

Property Value

object

Remarks

This value is guaranteed to be non-null, even if the type T allows null values.

Methods

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ValueHoldingRemoteValue?)

public override sealed bool Equals(ValueHoldingRemoteValue? other)

Parameters

other ValueHoldingRemoteValue

Returns

bool

Equals(ValueHoldingRemoteValue<T>?)

public virtual bool Equals(ValueHoldingRemoteValue<T>? other)

Parameters

other ValueHoldingRemoteValue<T>

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

PrintMembers(StringBuilder)

protected override bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

bool

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ValueHoldingRemoteValue<T>?, ValueHoldingRemoteValue<T>?)

public static bool operator ==(ValueHoldingRemoteValue<T>? left, ValueHoldingRemoteValue<T>? right)

Parameters

left ValueHoldingRemoteValue<T>
right ValueHoldingRemoteValue<T>

Returns

bool

operator !=(ValueHoldingRemoteValue<T>?, ValueHoldingRemoteValue<T>?)

public static bool operator !=(ValueHoldingRemoteValue<T>? left, ValueHoldingRemoteValue<T>? right)

Parameters

left ValueHoldingRemoteValue<T>
right ValueHoldingRemoteValue<T>

Returns

bool