Show / Hide Table of Contents

Class Helpers

A few helper methods for validation.

Inheritance
object
Helpers
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SpiceSharp.Validation
Assembly: SpiceSharp.dll
Syntax
public static class Helpers

Methods

IsValid(IEntityCollection)

Returns true if the specified entity collection is valid under the default rules.

Declaration
public static bool IsValid(this IEntityCollection entities)
Parameters
Type Name Description
IEntityCollection entities

The entities.

Returns
Type Description
bool

true if the specified entities are valid; otherwise, false.

Validate(IEntityCollection)

Validates the collection of entities using the default rules.

Declaration
public static IRules Validate(this IEntityCollection entities)
Parameters
Type Name Description
IEntityCollection entities

The entities.

Returns
Type Description
IRules

The rules used to validate the collection.

Validate(IEntityCollection, IRules)

Validates the collection of entities using the specified rules.

Declaration
public static IRules Validate(this IEntityCollection entities, IRules rules)
Parameters
Type Name Description
IEntityCollection entities

The entities.

IRules rules

The rules.

Returns
Type Description
IRules

The rules passed by the

In this article
Back to top Generated by DocFX