UnitStepAttribute

StockSharp.Messages

Step restriction for Unit values (Value = Base + N*Step, N>=0).

Inherits: StepAttribute

Implements: IValidator

Constructors

UnitStepAttribute
public UnitStepAttribute(Unit step, Unit baseValue)
unitStepAttribute = UnitStepAttribute(step, baseValue)

Initializes a new instance of the UnitStepAttribute.

step
StepUnit
baseValue
BaseValueUnit

Properties

BaseValueUnit
public Unit BaseValueUnit { get; }
value = unitStepAttribute.BaseValueUnit

Base value.

StepUnit
public Unit StepUnit { get; }
value = unitStepAttribute.StepUnit

Step value.

Methods

IsValid
public override bool IsValid(object value)
result = unitStepAttribute.IsValid(value)