Class GreaterOrEqualAttribute
- Namespace
- Exiled.API.Features.Attributes.Validators
- Assembly
- Exiled.API.dll
Checks if value greater or equal.
[AttributeUsage(AttributeTargets.Property)]
public class GreaterOrEqualAttribute : Attribute, _Attribute, IValidator
- Inheritance
-
GreaterOrEqualAttribute
- Implements
- Inherited Members
- Extension Methods
Constructors
GreaterOrEqualAttribute(object)
Initializes a new instance of the GreaterOrEqualAttribute class.
public GreaterOrEqualAttribute(object value)
Parameters
valueobject
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
Methods
Check(object)
Checks if other is satisfying this attributes condition.
public bool Check(object other)
Parameters
otherobjectValue to check.
Returns
- bool
Whether the value has passed check.