protected IMethod ResolveMethod(IType type, string name)
{
IMethod method = NameResolutionService.ResolveMethod(type, name);
if (null == method) throw new System.ArgumentException(string.Format("Method '{0}' not found in type '{1}'", type, name));
return method;
}