C# Possible to partial class "program" class for a console application?

Posted by JL on Stack Overflow See other posts from Stack Overflow or by JL
Published on 2010-05-24T06:02:13Z Indexed on 2010/05/24 6:11 UTC
Read the original article Hit count: 114

Filed under:
|
|

I was wondering if its possible to change the default "program" class that gets created for any console application to a partial class.

I want to do this because I want better organisation rather than have all methods in 1 file categorized by region. It would make more sense for me to have certain method categories sitting in separate files.

My understanding of a partial class is that it is a class definition in multiple files that during a compile merges the class files into 1 class unit.

I could be wrong, or there could be a better way for me to achieve better organisational structure. Any suggestions would help, and thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET