I opened a ticket here but am hoping that somebody can answer fairly simply.
YamlDotNet doesn't support ISerializable, but Json.Net does. So, as a workaround we're trying to serialize our object to JObject first, which respects our serialization settings and only serializes the appropriate properties. Then, we want to send our JObject to the YamlSerializer, but we get this error:
"Object does not match target type"