Can I use System.Reflection classes and methods in Code Contracts construction, that would check during static analysis? I want to define contract like that:
[ContractInvariantMethod]
private void ObjectInvariant()
{
Contract.Invariant(GetType().GetMethods().Any(x => x.Name == "Add"),"Error");
}
When I run application, this condition is checked. But it isn't checked during compilation. May I somehow enable static checks for contracts like that?