Class UpperLimitAttribute
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 UpperLimitAttribute : Attribute
Remarks
If this attribute is used on a private field, the source generator will automatically generate a property.
Constructors
UpperLimitAttribute(double)
Initializes a new instance of the UpperLimitAttribute class.
Declaration
public UpperLimitAttribute(double value)
Parameters
Type | Name | Description |
---|---|---|
double | value | The value. |
Properties
Maximum
Gets the minimum value.
Declaration
public double Maximum { get; }
Property Value
Type | Description |
---|---|
double | The minimum. |