home
home copied to clipboard
ISerializer<DateTime> Doesnt work
Im trying to add custom formatting for DateTimes My code:
public class XmlDateTimeSerializer : ISerializer<DateTime>
IExtendedXmlSerializer serializer = new ConfigurationContainer()
.Type<DateTime>().Register().Serializer().Using(new XmlDateTimeSerializer() { Options = options})
.Create();
But Get and Write methods never called on serialization Im also tried same as here in test: https://github.com/ExtendedXmlSerializer/home/blob/master/test/ExtendedXmlSerializer.Tests.ReportedIssues/Issue477Tests_Extended.cs
But that solution also didnt worked - what im doing wrong here or is it bugged?