/// <summary> /// Whether the deserializer can deserialize the content type /// </summary> /// <param name="mediaRange">Content type to deserialize</param> /// <param name="context">Current <see cref="BindingContext"/>.</param> /// <returns>True if supported, false otherwise</returns> public bool CanDeserialize(MediaRange mediaRange, BindingContext context) { return(Helpers.IsJsonType(mediaRange)); }
/// <summary> /// Whether the serializer can serialize the content type /// </summary> /// <param name="mediaRange">Content type to serialise</param> /// <returns>True if supported, false otherwise</returns> public bool CanSerialize(MediaRange mediaRange) { return(Helpers.IsJsonType(mediaRange)); }