public bool HasMethod(String name, bool isStatic) { MethodEntity entity = this.Methods.SingleOrDefault (m => m.Name.Equals (name) && m.Static == isStatic); return (entity != null); }