internal static Representation Create(INakedObjectSpecificationSurface[] specs, HttpRequestMessage req, RestControlFlags flags) { // filter out System types specs = specs.Where(s => !s.FullName().StartsWith("System.") && !s.FullName().StartsWith("Microsoft.")).ToArray(); // filter out predefined types specs = specs.Where(s => !RestUtils.IsPredefined(s)).ToArray(); return new ListRepresentation(specs, req, flags); }