Class LessThanAttribute
An attribute that indicates a maximum value for a parameter.
Inherited Members
Namespace: SpiceSharp.Attributes
Assembly: SpiceSharp.dll
Syntax
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
public sealed class LessThanAttribute : Attribute
Remarks
If this attribute is used on a private field, the source generator will automatically generate a property.
Constructors
LessThanAttribute(double)
Initializes a new instance of the LessThanAttribute class.
Declaration
public LessThanAttribute(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. |