Naming convention for partial classes file names?

Simon Verbeke picture Simon Verbeke · Dec 30, 2011 · Viewed 9k times · Source

If I have partial classes in C#, what should the file names be?

The class is called partial class Logic and would exist out of two or maybe three separate files.

Answer

Daniel Lo Nigro picture Daniel Lo Nigro · Dec 30, 2011

For a class called Logic, I'd probably go for Logic.something.cs (where "something" is different for each file). This would be in the same style as the partial classes that Visual Studio generates (eg. the .designer.cs files for forms)