private static IEnumerable <ODataPayloadKind> DetectPayloadKindImplementation(MediaType contentType) { if (((HttpUtils.CompareMediaTypeNames("multipart", contentType.TypeName) && HttpUtils.CompareMediaTypeNames("mixed", contentType.SubTypeName)) && (contentType.Parameters != null)) && contentType.Parameters.Any <KeyValuePair <string, string> >(kvp => HttpUtils.CompareMediaTypeParameterNames("boundary", kvp.Key))) { return(new ODataPayloadKind[] { ODataPayloadKind.Batch }); } return(Enumerable.Empty <ODataPayloadKind>()); }