Is there a way to ask that a method result respect a certain property? such as
interface MyInterface()
{
int MyMethod(int a, int b);
// i want that my int result is less then 10
}
I want to enforce in the definition this kind of request. Is it possible?