C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
AnalyzeRe.Attributes.NotEmptyAttribute Class Reference

Specifies that the enumerable property with this attribute cannot be empty when POSTing the resource to the server. Should only be used on properties whose type derives from IEnumerable. More...

Public Member Functions

override bool IsValid (object value)
 If the given value is an IEnumerable, it is only valid for POST if it is not empty.
 

Detailed Description

Specifies that the enumerable property with this attribute cannot be empty when POSTing the resource to the server. Should only be used on properties whose type derives from IEnumerable.

Definition at line 11 of file NotEmptyAttribute.cs.

Inheritance diagram for AnalyzeRe.Attributes.NotEmptyAttribute:
AnalyzeRe.Attributes.ValidationAttribute

Member Function Documentation

◆ IsValid()

override bool AnalyzeRe.Attributes.NotEmptyAttribute.IsValid ( object  value)
inline

If the given value is an IEnumerable, it is only valid for POST if it is not empty.

Parameters
valueThe IEnumerable to test.
Returns
False if the provided value is an empty IEnumerable, False otherwise.

Definition at line 18 of file NotEmptyAttribute.cs.


The documentation for this class was generated from the following file: