Skip to content

ISerializer<DateTime> Doesnt work #643

@Shidzy2

Description

@Shidzy2

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions