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
TThe 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
typeRemoteValueTypeThe type of the remote value.
ValueHoldingRemoteValue(ValueHoldingRemoteValue<T>)
protected ValueHoldingRemoteValue(ValueHoldingRemoteValue<T> original)
Parameters
originalValueHoldingRemoteValue<T>
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
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
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
objobject
Returns
Equals(ValueHoldingRemoteValue?)
public override sealed bool Equals(ValueHoldingRemoteValue? other)
Parameters
otherValueHoldingRemoteValue
Returns
Equals(ValueHoldingRemoteValue<T>?)
public virtual bool Equals(ValueHoldingRemoteValue<T>? other)
Parameters
otherValueHoldingRemoteValue<T>
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ValueHoldingRemoteValue<T>?, ValueHoldingRemoteValue<T>?)
public static bool operator ==(ValueHoldingRemoteValue<T>? left, ValueHoldingRemoteValue<T>? right)
Parameters
leftValueHoldingRemoteValue<T>rightValueHoldingRemoteValue<T>
Returns
operator !=(ValueHoldingRemoteValue<T>?, ValueHoldingRemoteValue<T>?)
public static bool operator !=(ValueHoldingRemoteValue<T>? left, ValueHoldingRemoteValue<T>? right)
Parameters
leftValueHoldingRemoteValue<T>rightValueHoldingRemoteValue<T>