Table of Contents

Class NonPositiveAttribute

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

Check if value is 0 or less.

[AttributeUsage(AttributeTargets.Property)]
public class NonPositiveAttribute : Attribute, _Attribute, IValidator
Inheritance
NonPositiveAttribute
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.