susad
November 29th, 2002, 04:28 AM
Is there any way to divide a C# class into two or more files. My sourcefile for a windows-form-class enlarged up to more then 100k and it takes a long time to load it with VisualStudio.
|
Click to See Complete Forum and Search --> : Divide a class in to files susad November 29th, 2002, 04:28 AM Is there any way to divide a C# class into two or more files. My sourcefile for a windows-form-class enlarged up to more then 100k and it takes a long time to load it with VisualStudio. Arild Fines November 29th, 2002, 04:48 AM Your class is too big. There is no good reason you would need a class to be that big. Refactor/redesign. That being said, the next version of C# will most likely allow you to split a class definition over multiple files, through a mechanism called partial classes. I just hope this will not merely become an excuse for the kind of sucky design that leads to monster classes. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |