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