UnitRangeAttribute
StockSharp.Messages
ユニット値のレンジ制限
継承元: RangeAttribute
実装: IValidator
コンストラクター
UnitRangeAttribute
public UnitRangeAttribute(Unit min, Unit max)
unitRangeAttribute = UnitRangeAttribute(min, max)
UnitRangeAttribute の新規インスタンスを初期化します。
- min
- 最小値(包括的)
- max
- 最大値(包括的)
プロパティ
DisableNullCheck
public bool DisableNullCheck { get; set; }
value = unitRangeAttribute.DisableNullCheck
unitRangeAttribute.DisableNullCheck = value
Gets or sets a value indicating whether null checks should be disabled.
メソッド
IsValid
public override bool IsValid(object value)
result = unitRangeAttribute.IsValid(value)
Validates the specified value by converting it and applying the custom validation.
- value
- The value to validate.
戻り値: True if the value is valid; otherwise, false.