[partial class] Suggestion and question

Have some feedback and input to share?
Don't be shy and drop us a note. We want to hear from you and strive to make our site better and more user friendly for our guests and members a like.
Post Reply
antonello.negrone
Posts: 30
Joined: Tue May 03, 2016 8:57 am
Location: Italy

[partial class] Suggestion and question

Post by antonello.negrone »

Hello dev team,

this is a suggestion but also a question because I'm not sure it is technically feasible.

In VO I have extended many standard controls simply by adding methods using the same class names, that VOXporter translates in <class>_external_class.

So, if the gui classes were declared as PARTIAL CLASS could we reach the same results as in VO ?

Thanks
Antonello
User avatar
wriedmann
Posts: 4031
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Re: [partial class] Suggestion and question

Post by wriedmann »

Hi Antonello,
unfortunately that works only when all components of the partial classes are in the same assembly (DLL or executable).
This is a .NET limitation.
VO can do that only because the class tree (class with all methods) is built on runtime.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
antonello.negrone
Posts: 30
Joined: Tue May 03, 2016 8:57 am
Location: Italy

Re: [partial class] Suggestion and question

Post by antonello.negrone »

Hi Wolfgang,

I was missing this detail and it explains everything, thank you for the answer!

Antonello
Post Reply