Table of Contents

Class CollectionNotEmptyAttribute

Namespace
Acuit.Pinpoint.Common.Validation
Assembly
Acuit.Pinpoint.Common.dll

Specify that a collection member must not be empty.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Property|AttributeTargets.Field|AttributeTargets.Parameter, AllowMultiple = false)]
public sealed class CollectionNotEmptyAttribute : ValidationAttribute
Inheritance
CollectionNotEmptyAttribute
Inherited Members

Constructors

CollectionNotEmptyAttribute()

Initializes a new instance of the WildcardExpressionAttribute class.

public CollectionNotEmptyAttribute()

Methods

IsValid(object?)

Checks whether the specified object is valid.

public override bool IsValid(object? value)

Parameters

value object

The value of the object to validate.

Returns

bool

true if the specified value is valid; otherwise, false.