Struct ParameterValue
- Namespace
- xFunc.Maths.Expressions.Parameters
- Assembly
- xFunc.Maths.dll
Represents a parameter value.
public readonly struct ParameterValue : IEquatable<ParameterValue>
- Implements
- Inherited Members
Constructors
ParameterValue(bool)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(bool value)
Parameters
valueboolThe value.
ParameterValue(double)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(double value)
Parameters
valuedoubleThe value.
ParameterValue(Complex)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(Complex value)
Parameters
valueComplexThe value.
ParameterValue(string)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(string value)
Parameters
valuestringThe value.
ParameterValue(Lambda)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(Lambda lambda)
Parameters
lambdaLambda
ParameterValue(MatrixValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(MatrixValue value)
Parameters
valueMatrixValueThe value.
ParameterValue(VectorValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(VectorValue value)
Parameters
valueVectorValueThe value.
ParameterValue(NumberValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(NumberValue value)
Parameters
valueNumberValueThe value.
ParameterValue(RationalValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(RationalValue rationalValue)
Parameters
rationalValueRationalValue
ParameterValue(AngleValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(AngleValue value)
Parameters
valueAngleValueThe value.
ParameterValue(AreaValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(AreaValue value)
Parameters
valueAreaValueThe value.
ParameterValue(LengthValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(LengthValue value)
Parameters
valueLengthValueThe value.
ParameterValue(MassValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(MassValue value)
Parameters
valueMassValueThe value.
ParameterValue(PowerValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(PowerValue value)
Parameters
valuePowerValueThe value.
ParameterValue(TemperatureValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(TemperatureValue value)
Parameters
valueTemperatureValueThe value.
ParameterValue(TimeValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(TimeValue value)
Parameters
valueTimeValueThe value.
ParameterValue(VolumeValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(VolumeValue value)
Parameters
valueVolumeValueThe value.
Properties
Value
Gets a value.
public object Value { get; }
Property Value
Methods
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.
Equals(ParameterValue)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ParameterValue other)
Parameters
otherParameterValueAn object to compare with this object.
Returns
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 ==(ParameterValue, ParameterValue)
Determines whether two specified instances of ParameterValue are equal.
public static bool operator ==(ParameterValue left, ParameterValue right)
Parameters
leftParameterValueThe first object to compare.
rightParameterValueThe second object to compare.
Returns
- bool
trueifleftis equal toright; otherwise,false.
implicit operator ParameterValue(bool)
Converts the value to ParameterValue.
public static implicit operator ParameterValue(bool value)
Parameters
valueboolThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(double)
Converts the value to ParameterValue.
public static implicit operator ParameterValue(double value)
Parameters
valuedoubleThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(Complex)
Converts the value to ParameterValue.
public static implicit operator ParameterValue(Complex value)
Parameters
valueComplexThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(string)
Converts the value to ParameterValue.
public static implicit operator ParameterValue(string value)
Parameters
valuestringThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(Lambda)
Converts the value to ParameterValue.
public static implicit operator ParameterValue(Lambda value)
Parameters
valueLambdaThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(MatrixValue)
Converts the value to ParameterValue.
public static implicit operator ParameterValue(MatrixValue value)
Parameters
valueMatrixValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(VectorValue)
Converts the value to ParameterValue.
public static implicit operator ParameterValue(VectorValue value)
Parameters
valueVectorValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(NumberValue)
Converts the value to ParameterValue.
public static implicit operator ParameterValue(NumberValue value)
Parameters
valueNumberValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(RationalValue)
Converts the value to ParameterValue.
public static implicit operator ParameterValue(RationalValue value)
Parameters
valueRationalValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(AngleValue)
Converts the value to ParameterValue.
public static implicit operator ParameterValue(AngleValue value)
Parameters
valueAngleValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(AreaValue)
Converts the value to ParameterValue.
public static implicit operator ParameterValue(AreaValue value)
Parameters
valueAreaValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(LengthValue)
Converts the value to ParameterValue.
public static implicit operator ParameterValue(LengthValue value)
Parameters
valueLengthValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(MassValue)
Converts the value to ParameterValue.
public static implicit operator ParameterValue(MassValue value)
Parameters
valueMassValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(PowerValue)
Converts the value to ParameterValue.
public static implicit operator ParameterValue(PowerValue value)
Parameters
valuePowerValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(TemperatureValue)
Converts the value to ParameterValue.
public static implicit operator ParameterValue(TemperatureValue value)
Parameters
valueTemperatureValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(TimeValue)
Converts the value to ParameterValue.
public static implicit operator ParameterValue(TimeValue value)
Parameters
valueTimeValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(VolumeValue)
Converts the value to ParameterValue.
public static implicit operator ParameterValue(VolumeValue value)
Parameters
valueVolumeValueThe value.
Returns
- ParameterValue
The parameter value.
operator !=(ParameterValue, ParameterValue)
Determines whether two specified instances of ParameterValue are not equal.
public static bool operator !=(ParameterValue left, ParameterValue right)
Parameters
leftParameterValueThe first object to compare.
rightParameterValueThe second object to compare.
Returns
- bool
trueifleftis not equal toright; otherwise,false.