Table of Contents

Class UnitRangeAttribute

Namespace
StockSharp.Messages
Assembly
StockSharp.Messages.dll

Range restriction for Unit values.

[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter)]
[CLSCompliant(false)]
public class UnitRangeAttribute : RangeAttribute, IValidator
Inheritance
UnitRangeAttribute
Implements
Inherited Members
Extension Methods

Constructors

UnitRangeAttribute(Unit, Unit)

Initializes a new instance of the UnitRangeAttribute.

public UnitRangeAttribute(Unit min, Unit max)

Parameters

min Unit

Minimum value (inclusive).

max Unit

Maximum value (inclusive).

Properties

DisableNullCheck

Gets or sets a value indicating whether null checks should be disabled.

public bool DisableNullCheck { get; set; }

Property Value

bool

Max

Maximum value.

public Unit Max { get; }

Property Value

Unit

Min

Minimum value.

public Unit Min { get; }

Property Value

Unit

Methods

IsValid(object)

public override bool IsValid(object value)

Parameters

value object

Returns

bool