Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Why does a static class have "Equals" and "ReferenceEquals"?

$
0
0

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


Viewing all articles
Browse latest Browse all 8156


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>