Struct ManagedInteropValue<T>
The managed (.net) representation of a runtime value.
public readonly struct ManagedInteropValue<T> : IManagedInteropValue<T>, IManagedInteropValue, IEquatable<ManagedInteropValue<T>> where T : struct
Type Parameters
T
- Implements
- Inherited Members
Constructors
ManagedInteropValue(T)
The managed (.net) representation of a runtime value.
public ManagedInteropValue(T value)
Parameters
valueT
Fields
Value
public readonly T Value
Field Value
- T
Properties
BooleanFalse
public static ManagedInteropValue<bool> BooleanFalse { get; }
Property Value
BooleanTrue
public static ManagedInteropValue<bool> BooleanTrue { get; }
Property Value
BoxedValue
public object BoxedValue { get; }
Property Value
ByteMaxValue
public static ManagedInteropValue<byte> ByteMaxValue { get; }
Property Value
ByteMinValue
public static ManagedInteropValue<byte> ByteMinValue { get; }
Property Value
ByteZeroValue
public static ManagedInteropValue<byte> ByteZeroValue { get; }
Property Value
CurrencyMaxValue
public static ManagedInteropValue<ManagedCurrencyInteropValue> CurrencyMaxValue { get; }
Property Value
CurrencyMinValue
public static ManagedInteropValue<ManagedCurrencyInteropValue> CurrencyMinValue { get; }
Property Value
CurrencyZeroValue
public static ManagedInteropValue<ManagedCurrencyInteropValue> CurrencyZeroValue { get; }
Property Value
DecimalMaxValue
public static ManagedInteropValue<ManagedDecimalInteropValue> DecimalMaxValue { get; }
Property Value
DecimalMinValue
public static ManagedInteropValue<ManagedDecimalInteropValue> DecimalMinValue { get; }
Property Value
DecimalZeroValue
public static ManagedInteropValue<ManagedDecimalInteropValue> DecimalZeroValue { get; }
Property Value
DoubleMaxValue
public static ManagedInteropValue<double> DoubleMaxValue { get; }
Property Value
DoubleMinValue
public static ManagedInteropValue<double> DoubleMinValue { get; }
Property Value
DoubleZeroValue
public static ManagedInteropValue<double> DoubleZeroValue { get; }
Property Value
Int16MaxValue
public static ManagedInteropValue<short> Int16MaxValue { get; }
Property Value
Int16MinValue
public static ManagedInteropValue<short> Int16MinValue { get; }
Property Value
Int16ZeroValue
public static ManagedInteropValue<short> Int16ZeroValue { get; }
Property Value
Int32MaxValue
public static ManagedInteropValue<int> Int32MaxValue { get; }
Property Value
Int32MinValue
public static ManagedInteropValue<int> Int32MinValue { get; }
Property Value
Int32ZeroValue
public static ManagedInteropValue<int> Int32ZeroValue { get; }
Property Value
Int64MaxValue
public static ManagedInteropValue<long> Int64MaxValue { get; }
Property Value
Int64MinValue
public static ManagedInteropValue<long> Int64MinValue { get; }
Property Value
Int64ZeroValue
public static ManagedInteropValue<long> Int64ZeroValue { get; }
Property Value
SingleMaxValue
public static ManagedInteropValue<float> SingleMaxValue { get; }
Property Value
SingleMinValue
public static ManagedInteropValue<float> SingleMinValue { get; }
Property Value
SingleZeroValue
public static ManagedInteropValue<float> SingleZeroValue { get; }
Property Value
StoredValue
public T StoredValue { get; }
Property Value
- T
Methods
Equals(ManagedInteropValue<T>)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ManagedInteropValue<T> other)
Parameters
otherManagedInteropValue<T>An object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(ManagedInteropValue<T>, ManagedInteropValue<T>)
public static bool operator ==(ManagedInteropValue<T> left, ManagedInteropValue<T> right)
Parameters
leftManagedInteropValue<T>rightManagedInteropValue<T>
Returns
operator !=(ManagedInteropValue<T>, ManagedInteropValue<T>)
public static bool operator !=(ManagedInteropValue<T> left, ManagedInteropValue<T> right)
Parameters
leftManagedInteropValue<T>rightManagedInteropValue<T>