public static string ToXmlString( [NotNull] this ISelfSerializable item) { if (item == null) { throw new ArgumentNullException(nameof(item)); } return(item.ToXElement( ).ToString( )); }
public override void Write(Utf8JsonWriter writer, ISelfSerializable value, JsonSerializerOptions options) => value.Serialize(writer, options, _settings);