Class UnitStepAttribute
- Namespace
- StockSharp.Messages
- Assembly
- StockSharp.Messages.dll
Step restriction for Unit values (Value = Base + N*Step, N>=0).
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter)]
[CLSCompliant(false)]
public class UnitStepAttribute : StepAttribute, IValidator
- Inheritance
-
UnitStepAttribute
- Implements
- Extension Methods
Constructors
UnitStepAttribute(Unit, Unit)
Initializes a new instance of the UnitStepAttribute.
public UnitStepAttribute(Unit step, Unit baseValue)
Parameters
Properties
BaseValueUnit
Base value.
public Unit BaseValueUnit { get; }
Property Value
StepUnit
Step value.
public Unit StepUnit { get; }
Property Value
Methods
IsValid(object)
public override bool IsValid(object value)
Parameters
valueobject