G
Guest
Is it possible to divide a class in many .cs files ? For example one source file for each method ?
Thanks.
Thanks.
=?Utf-8?B?SnVhcmV6?= said:Is it possible to divide a class in many .cs files ?
For example one source file for each method ?
Juarez said:Is it possible to divide a class in many .cs files ? For example one
source file for each method ?
Jon Skeet said:Not yet, but that's a feature which will appear in Whidbey, under the
name "partial types". It's primarily so that you can split
autogenerated code (e.g. forms designer stuff) from manually generated
code.
Chad Z. Hower aka Kudzu said:Why did they need to implement that to do that? Couldnt they just build a
base class which the designer code goes in and then we as users work in the
descendant?
Jon Skeet said:That would be solving a tools problem with a design solution - and the
two should (IMO) rarely mix. If a tool deficiency forces you to make a
suboptimal design (such as having two levels of hierarchy when you
really only want one) then there's something wrong.
Chad Z. Hower aka Kudzu said:Thats quite a fine line - but I dont see how splitting a class into two files
AND modifying the language to fix a "Tools problem" is better.