vkhorikov / CSharpFunctionalExtensions

Functional extensions for C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Request: Remove obsolete methods

Paul-Williams opened this issue · comments

Would it be possible to draw a line and remove the multitude of obsolete methods from the various Result classes?
They seem to have been building up over time, due to ad-hoc design, but surely they have to go, sometime?
I would be happy to do this myself, but would not want to step on anyones toes...

Or even, perhaps, annotate them with [EditorBrowsable(EditorBrowsableState.Never)] to prevent them appearing in intellisense.

I like the latter option better. Keep them in the code (for now at least) but don't show in IntelliSense's code completion. A PR is welcome.

As discussed, have applied the [EditorBrowsable(EditorBrowsableState.Never)] attribute to all Result methods which had previously been marked as Obsolete.
PR: #418

FYI: Target Frameworks net40 & net45 are no longer supported under Visual Studio 2022.
I have not touched this, however, I did have to temporarily remove them as targets in order to build locally, using VS2022.

I would be happy to also apply EditorBrowsable to the obsolete Maybe extension methods. I did not do so this time as it was not previously discussed.

Merged the PR, thank you. Please go ahead with Maybe (and any other classes you may find) as well, for consistency sake. I'll publish a new lib version after that.

As requested, have applied EditorBrowsableAttribute obsolete methods in MaybeExtensions class.
PR: #419

Thank you. Will be published with v2.29.4 shortly.

My pleasure. Thank you for the excellent library and accompanying Plurasight course! Headed me down the path of functional-like programming ;)