Partial classes

John Salerno johnjsal at NOSPAMgmail.com
Wed Jul 19 12:42:55 EDT 2006


Bruno Desthuilliers wrote:
> John Salerno wrote:
>> Marc 'BlackJack' Rintsch wrote:
>>
>>> Can you flesh out your use case a little bit and tell why you can't solve
>>> the problem with inheritance or a meta class?
>>
>> From my experience with C#, the only real use for partial classes is
>> when you want to separate your GUI code from the rest of your logic.
> 
> What the ... is GUI code doing in a domain object ???
> 
> 
> 

well, as far as visual studio goes, it puts the GUI code in a partial 
class that you don't see, and then you do the rest of your coding in the 
other part of the same class...i suppose you can change it however you 
like, but that's the way it starts...



More information about the Python-list mailing list