public static void SerializeResource(Resource resource, XmlWriter writer, bool summary = false) { FhirSerializer.Serialize(resource, new XmlFhirWriter(writer), summary); }
internal static string SerializeToXml(object instance) { return(xmlWriterToString(xw => FhirSerializer.Serialize(instance, new XmlFhirWriter(xw)))); }
public static void SerializeTagList(TagList list, XmlWriter xw) { FhirSerializer.Serialize(list, new XmlFhirWriter(xw), false); }
public static void SerializeTagList(TagList list, JsonWriter jw) { FhirSerializer.Serialize(list, new JsonDomFhirWriter(jw), false); }
internal static byte[] SerializeToJsonBytes(object instance, bool summary = false) { return(jsonWriterToBytes(jw => FhirSerializer.Serialize(instance, new JsonDomFhirWriter(jw), summary))); }
internal static byte[] SerializeToXmlBytes(object instance, bool summary = false) { return(xmlWriterToBytes(xw => FhirSerializer.Serialize(instance, new XmlFhirWriter(xw), summary))); }
internal static string SerializeToJson(object instance, bool summary = false) { return(jsonWriterToString(jw => FhirSerializer.Serialize(instance, new JsonDomFhirWriter(jw), summary))); }