Table of Contents

Class NonNegativeAttribute

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

Checks if value is 0 or greater.

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

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.