コード例 #1
0
 public static ITypeConfiguration <T> CustomSerializer <T>(this ITypeConfiguration <T> @this,
                                                           IExtendedXmlCustomSerializer <T> serializer)
 => @this.CustomSerializer(new Adapter <T>(serializer));
コード例 #2
0
 public static ITypeConfiguration <T> CustomSerializer <T>(this ITypeConfiguration <T> @this,
                                                           Action <System.Xml.XmlWriter, T> serializer,
                                                           Func <XElement, T> deserialize)
 => @this.CustomSerializer(new ExtendedXmlCustomSerializer <T>(deserialize, serializer));