home icon indicating copy to clipboard operation
home copied to clipboard

ISerializer<DateTime> Doesnt work

Open Shidzy2 opened this issue 8 months ago • 1 comments

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?

Shidzy2 avatar Feb 21 '25 12:02 Shidzy2