You can split the file that way, you need to keep the Class source code in once piece! In .NET you can declare your class in fragments if you wish!