Class LowerLimitAttribute
An attribute that indicates a minimum limit for a parameter value.
Inherited Members
Namespace: SpiceSharp.Attributes
Assembly: SpiceSharp.dll
Syntax
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class LowerLimitAttribute : Attribute
Remarks
If this attribute is used on a private field, the source generator will automatically generate a property.
Constructors
LowerLimitAttribute(double)
Initializes a new instance of the LowerLimitAttribute class.
Declaration
public LowerLimitAttribute(double value)
Parameters
Type | Name | Description |
---|---|---|
double | value | The value. |
Properties
Minimum
Gets the minimum value.
Declaration
public double Minimum { get; }
Property Value
Type | Description |
---|---|
double | The minimum. |