ToDateOnly extension method

Stimulsoft Reports.WEB discussion
Post Reply
segmentsoftware
Posts: 2
Joined: Tue Jun 18, 2024 10:52 pm

ToDateOnly extension method

Post by segmentsoftware »

I just installed the latest version 2024.3.1 and saw that it has added an extension method ToDateOnly. This method has been added to the System namespace. The update is now giving me hundreds of errors: 'The call is ambiguous between the following methods or properties: 'MyNameSpace.Extensions.DateOnlyExtensions.ToDateTime(System.DateOnly)' and 'System.DateOnlyExt.ToDateTime(System.DateOnly)'. It is impossible for me to control the scope of your extension method because you have used the System namespace. I am forced to rename my extension method name if I want to use the latest version. It is my understanding that adding extension methods to the System namespace is not considered "best practice" and that they should have been added to a namespace that starts with Stimulsoft.
Lech Kulikowski
Posts: 7333
Joined: Tue Mar 20, 2018 5:34 am

Re: ToDateOnly extension method

Post by Lech Kulikowski »

Hello,

It will be fixed in the next minor release in the next week.

Thank you.
Post Reply