Hi all:
As far as I see, a static class something like a sealed class with all the static methods, properties……,ect. It shouldn't inherit from any classes (even from object). Because any instance-based methods cannot be used directly there.
But——to my surprise!Even if I define:
public static class ConstDefination { public const string CONNECTIONID = "123456789"; public const string HUBNAME = "PageHub"; }
From the intellisense you can see:
'
Why?Anyone kind to tell me?
Thanks!
ASP.NET Forum
Other Discussion Forums
FreeRice Donate
Issues to report
Free Tech Books Search and Download