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