light_wt,
Yes, you can have more than one class per file. I don't believe there
is a limit (although it may become impractical at some point if you have too
much).
One caveat. The win forms designer likes to have one class (the form it
is designing) per file. It has something to do with the resx files it
generates.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"light_wt" <li*****************@hotmail.com> wrote in message
news:00****************************@phx.gbl...
Hi,
Happy NY, folks. I've just a two simple questions:
Can there be more than 1 class per file?
Can I declare more than 1 public class per file?
I tend to think yes on both. Is there execptions?
Thanks.
light_wt.