Replies: 3 comments
-
No. You will need the namespace in all of htem. when you have: File1.cs namespace Foo;
public partial class C { } This is defining a class When you have: File2.cs public partial class C { } It's just defining a class |
Beta Was this translation helpful? Give feedback.
-
There is no recommended way. However, if you are going use them, then it needs to follow the rules of the language (for example, that all parts must be |
Beta Was this translation helpful? Give feedback.
-
Thank you! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I just discovered that writing a class with multiple source files as
public static partial class xxxx {}
do only require one single namespace xyz; - statement in just one of the partial source files!?
What is the recommended, correct way to write partial classes?
Beta Was this translation helpful? Give feedback.
All reactions