Table of Contents

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

step Unit

StepUnit

baseValue Unit

BaseValueUnit

Properties

BaseValueUnit

Base value.

public Unit BaseValueUnit { get; }

Property Value

Unit

StepUnit

Step value.

public Unit StepUnit { get; }

Property Value

Unit

Methods

IsValid(object)

public override bool IsValid(object value)

Parameters

value object

Returns

bool