private JsonpMediaTypeFormatter(JsonpMediaTypeFormatter parent, string callback, string jsonpState, string callbackQueryParameter, string jsonpStateQueryParameter) : this(callbackQueryParameter, jsonpStateQueryParameter) { if (parent == null) throw new ArgumentNullException("parent"); if (string.IsNullOrEmpty(callback)) throw new ArgumentNullException("callback"); SerializerSettings = parent.SerializerSettings; _Callback = callback; _JsonpState = jsonpState; }
private JsonpMediaTypeFormatter(JsonpMediaTypeFormatter parent, string callback, string jsonpState, string callbackQueryParameter, string jsonpStateQueryParameter) : this(callbackQueryParameter, jsonpStateQueryParameter) { if (parent == null) { throw new ArgumentNullException("parent"); } if (string.IsNullOrEmpty(callback)) { throw new ArgumentNullException("callback"); } SerializerSettings = parent.SerializerSettings; _Callback = callback; _JsonpState = jsonpState; }