Skip to content

Instantly share code, notes, and snippets.

@saberone
saberone / Validation.cs
Created August 16, 2013 11:29
A Quick hack for a simple validation using yield. The idea is to create a very clean api/interface. Some Unit tests are included, but they are far from thorough.
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Web.Configuration;
using System.Web.Security;
namespace Validation
{
public interface IValidator <T>
{