UnitStepAttribute

StockSharp.Messages

単位値(値=ベース+N*ステップ、N>=0)のステップ制限。

継承元: StepAttribute

実装: IValidator

コンストラクター

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

UnitStepAttribute の新規インスタンスを初期化します。

step
担当: 佐藤 宏
baseValue
担当: 佐藤 宏

プロパティ

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

ベース値。

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

ステップ値。

メソッド

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