Class UnitRangeAttribute
- Namespace
- StockSharp.Messages
- Assembly
- StockSharp.Messages.dll
Range restriction for Unit values.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter)]
[CLSCompliant(false)]
public class UnitRangeAttribute : RangeAttribute, IValidator
- Inheritance
-
UnitRangeAttribute
- Implements
- Inherited Members
- Extension Methods
Constructors
UnitRangeAttribute(Unit, Unit)
Initializes a new instance of the UnitRangeAttribute.
public UnitRangeAttribute(Unit min, Unit max)
Parameters
Properties
DisableNullCheck
Gets or sets a value indicating whether null checks should be disabled.
public bool DisableNullCheck { get; set; }
Property Value
Max
Maximum value.
public Unit Max { get; }
Property Value
Min
Minimum value.
public Unit Min { get; }
Property Value
Methods
IsValid(object)
public override bool IsValid(object value)
Parameters
valueobject