I have the following method:
public static IResult Validate(this T value) { } // Validate
How can I restrict T t
You can only do this:
public static IResult Validate(this T value) where T: int { //validate }
Only classes and interfaces can be used as constraint.