xsharp.eu • [partial class] Suggestion and question
Page 1 of 1

[partial class] Suggestion and question

Posted: Tue Nov 25, 2025 11:08 am
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

Re: [partial class] Suggestion and question

Posted: Tue Nov 25, 2025 11:42 am
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

Re: [partial class] Suggestion and question

Posted: Tue Nov 25, 2025 1:54 pm
by antonello.negrone
Hi Wolfgang,

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

Antonello