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
value
boolThe value.
ParameterValue(double)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(double value)
Parameters
value
doubleThe value.
ParameterValue(Complex)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(Complex value)
Parameters
value
ComplexThe value.
ParameterValue(string)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(string value)
Parameters
value
stringThe value.
ParameterValue(Lambda)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(Lambda lambda)
Parameters
lambda
Lambda
ParameterValue(MatrixValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(MatrixValue value)
Parameters
value
MatrixValueThe value.
ParameterValue(VectorValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(VectorValue value)
Parameters
value
VectorValueThe value.
ParameterValue(NumberValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(NumberValue value)
Parameters
value
NumberValueThe value.
ParameterValue(RationalValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(RationalValue rationalValue)
Parameters
rationalValue
RationalValue
ParameterValue(AngleValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(AngleValue value)
Parameters
value
AngleValueThe value.
ParameterValue(AreaValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(AreaValue value)
Parameters
value
AreaValueThe value.
ParameterValue(LengthValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(LengthValue value)
Parameters
value
LengthValueThe value.
ParameterValue(MassValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(MassValue value)
Parameters
value
MassValueThe value.
ParameterValue(PowerValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(PowerValue value)
Parameters
value
PowerValueThe value.
ParameterValue(TemperatureValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(TemperatureValue value)
Parameters
value
TemperatureValueThe value.
ParameterValue(TimeValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(TimeValue value)
Parameters
value
TimeValueThe value.
ParameterValue(VolumeValue)
Initializes a new instance of the ParameterValue struct.
public ParameterValue(VolumeValue value)
Parameters
value
VolumeValueThe 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
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and 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
other
ParameterValueAn 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
left
ParameterValueThe first object to compare.
right
ParameterValueThe second object to compare.
Returns
- bool
true
ifleft
is equal toright
; otherwise,false
.
implicit operator ParameterValue(bool)
Converts the value
to ParameterValue.
public static implicit operator ParameterValue(bool value)
Parameters
value
boolThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(double)
Converts the value
to ParameterValue.
public static implicit operator ParameterValue(double value)
Parameters
value
doubleThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(Complex)
Converts the value
to ParameterValue.
public static implicit operator ParameterValue(Complex value)
Parameters
value
ComplexThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(string)
Converts the value
to ParameterValue.
public static implicit operator ParameterValue(string value)
Parameters
value
stringThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(Lambda)
Converts the value
to ParameterValue.
public static implicit operator ParameterValue(Lambda value)
Parameters
value
LambdaThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(MatrixValue)
Converts the value
to ParameterValue.
public static implicit operator ParameterValue(MatrixValue value)
Parameters
value
MatrixValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(VectorValue)
Converts the value
to ParameterValue.
public static implicit operator ParameterValue(VectorValue value)
Parameters
value
VectorValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(NumberValue)
Converts the value
to ParameterValue.
public static implicit operator ParameterValue(NumberValue value)
Parameters
value
NumberValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(RationalValue)
Converts the value
to ParameterValue.
public static implicit operator ParameterValue(RationalValue value)
Parameters
value
RationalValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(AngleValue)
Converts the value
to ParameterValue.
public static implicit operator ParameterValue(AngleValue value)
Parameters
value
AngleValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(AreaValue)
Converts the value
to ParameterValue.
public static implicit operator ParameterValue(AreaValue value)
Parameters
value
AreaValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(LengthValue)
Converts the value
to ParameterValue.
public static implicit operator ParameterValue(LengthValue value)
Parameters
value
LengthValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(MassValue)
Converts the value
to ParameterValue.
public static implicit operator ParameterValue(MassValue value)
Parameters
value
MassValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(PowerValue)
Converts the value
to ParameterValue.
public static implicit operator ParameterValue(PowerValue value)
Parameters
value
PowerValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(TemperatureValue)
Converts the value
to ParameterValue.
public static implicit operator ParameterValue(TemperatureValue value)
Parameters
value
TemperatureValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(TimeValue)
Converts the value
to ParameterValue.
public static implicit operator ParameterValue(TimeValue value)
Parameters
value
TimeValueThe value.
Returns
- ParameterValue
The parameter value.
implicit operator ParameterValue(VolumeValue)
Converts the value
to ParameterValue.
public static implicit operator ParameterValue(VolumeValue value)
Parameters
value
VolumeValueThe 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
left
ParameterValueThe first object to compare.
right
ParameterValueThe second object to compare.
Returns
- bool
true
ifleft
is not equal toright
; otherwise,false
.