public static TypeDefinition CheckedResolve(this TypeReference self) { var type = self.Resolve (); if (type == null) throw new ResolutionException (self); return type; }