tdsharp icon indicating copy to clipboard operation
tdsharp copied to clipboard

TDLib.Bindings vs TdLib.Bindings

Open ForNeVeR opened this issue 2 years ago • 3 comments

For now, we have two distinct namespaces: TDLib.Bindings and TdLib.Bindings for some reason.

We should figure it out and try to switch to some single one from these two.

ForNeVeR avatar Apr 10 '22 12:04 ForNeVeR

Yeah, that is probably just a typo I made somewhere.

x2bool avatar Apr 10 '22 12:04 x2bool

Not only you: I have made it, too :)

The problem was that the case is different between the project files and the actual namespaces. I'm making a PR to make it all consistent (and hopefully don't break too much user code).

ForNeVeR avatar Apr 10 '22 12:04 ForNeVeR

Okay, here's the strategy. There are three types which were in the wrong namespace: TDLib.Bindings.ITdLibBindings, TDLib.Bindings.TdLibBindingsExtensions, TDLib.Bindings.TdLogLevel.

  • [x] The next tdsharp update (1.8.1.1) will include them within a special compatibility layer (see TdLib/LecagyCompat.cs), and they will be marked as [Obsolete].

  • [x] The update after that (probably 1.8.9) will mark them as [Obsolete(error: true)].

  • [x] And the update after that (1.9?) will remove them.

ForNeVeR avatar Apr 10 '22 14:04 ForNeVeR