Table of Contents

Class GreaterThanAttribute

Namespace
Exiled.API.Features.Attributes.Validators
Assembly
Exiled.API.dll

Check if value is greater.

[AttributeUsage(AttributeTargets.Property)]
public class GreaterThanAttribute : Attribute, _Attribute, IValidator
Inheritance
GreaterThanAttribute
Implements
Inherited Members
Extension Methods

Constructors

GreaterThanAttribute(object)

Initializes a new instance of the GreaterThanAttribute class.

public GreaterThanAttribute(object value)

Parameters

value object

Remarks

value must be able to convert to your target type via ChangeType(object, Type).

Properties

Value

Gets the minimum value.

public object Value { get; }

Property Value

object

Methods

Check(object)

Checks if other is satisfying this attributes condition.

public bool Check(object other)

Parameters

other object

Value to check.

Returns

bool

Whether the value has passed check.