Hello everyone,
I am using VSTS 2008 + C# + .Net 2.0 to develop Windows Forms application. I found by default, the new Form we created will be marked as public partial.
My concern is whether expose class as public has any security risks? Should we mark it as private? Any impact for functionality if we mark it as private?
BTW: I met with compile error when marking the class from public partial as private. Here is the compile error message, any ideas what is wrong?
Error 1 Elements defined in a namespace cannot be explicitly declared as private, protected, or protected internal C:\FooTest\Form1.Designer.cs
thanks in advance, George