Beispiel #1
0
 public static void InitStartBaseHypermediaSerializationStrings(ref StringBuilder builder, Hypermedia hypermedia, string outerTabulationBuilder, string innerTabulationBuilder)
 {
     InitStartBaseSerializationStrings(ref builder, hypermedia, outerTabulationBuilder, innerTabulationBuilder);
     builder.AppendLine($"{innerTabulationBuilder}(string:name)={EncodingTools.EncodeString(hypermedia.Name, hypermedia.Encoding is null ? Encoding.UTF8 : hypermedia.Encoding)},");
 }
Beispiel #2
0
 public static void InitStartBaseSystemEntitySerializationStrings(ref StringBuilder builder, IEntity entity, Encoding encoding, string outerTabulationBuilder, string innerTabulationBuilder)
 {
     InitStartBaseSerializationStrings(ref builder, entity, outerTabulationBuilder, innerTabulationBuilder);
     builder.AppendLine($"{innerTabulationBuilder}(string:name)={EncodingTools.EncodeString(entity.Name, encoding)},");
 }