internal static ApiRequestFormat Clone(this ApiRequestFormat requestFormat) { return(new ApiRequestFormat() { Formatter = requestFormat.Formatter, MediaType = requestFormat.MediaType, }); }
internal static ApiRequestFormat Clone(this ApiRequestFormat requestFormat) { Contract.Requires(requestFormat != null); Contract.Ensures(Contract.Result <ApiRequestFormat>() != null); return(new ApiRequestFormat() { Formatter = requestFormat.Formatter, MediaType = requestFormat.MediaType, }); }