コード例 #1
0
 public static void SerializeResource(Resource resource, XmlWriter writer, bool summary = false)
 {
     FhirSerializer.Serialize(resource, new XmlFhirWriter(writer), summary);
 }
コード例 #2
0
 internal static string SerializeToXml(object instance)
 {
     return(xmlWriterToString(xw => FhirSerializer.Serialize(instance, new XmlFhirWriter(xw))));
 }
コード例 #3
0
 public static void SerializeTagList(TagList list, XmlWriter xw)
 {
     FhirSerializer.Serialize(list, new XmlFhirWriter(xw), false);
 }
コード例 #4
0
 public static void SerializeTagList(TagList list, JsonWriter jw)
 {
     FhirSerializer.Serialize(list, new JsonDomFhirWriter(jw), false);
 }
コード例 #5
0
 internal static byte[] SerializeToJsonBytes(object instance, bool summary = false)
 {
     return(jsonWriterToBytes(jw => FhirSerializer.Serialize(instance, new JsonDomFhirWriter(jw), summary)));
 }
コード例 #6
0
 internal static byte[] SerializeToXmlBytes(object instance, bool summary = false)
 {
     return(xmlWriterToBytes(xw => FhirSerializer.Serialize(instance, new XmlFhirWriter(xw), summary)));
 }
コード例 #7
0
 internal static string SerializeToJson(object instance, bool summary = false)
 {
     return(jsonWriterToString(jw => FhirSerializer.Serialize(instance, new JsonDomFhirWriter(jw), summary)));
 }