Class GreaterThanAttribute
An attribute that indicates a minimum 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 GreaterThanAttribute : Attribute
Remarks
If this attribute is used on a private field, the source generator will automatically generate a property.
Constructors
GreaterThanAttribute(double)
Initializes a new instance of the GreaterThanAttribute class.
Declaration
public GreaterThanAttribute(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. |