CypherPotato / LightFluentValidator

Validates any object without being to create an abstraction or definition for it.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LightFluentValidator

This repository contains the code necessary to perform inline validations, without creating a validator, property, or abstraction, for any object.

Example:

string test = "hello".Validate(str => str.MinimumLength(10));
int number = 123
    .Validate(i => i.GreaterThan(10))
    .Validate(i => i.LessThan(150));

About

Validates any object without being to create an abstraction or definition for it.


Languages

Language:C# 100.0%