The {0} declared on method '{1}' in type '{2}' is invalid. {0}s are only valid on methods that are declared in a type that ...