I don't want that end programmer can user == or != operator against my singelton class.
End user can't do
if( SingleInstace == null)
I have overloaded != and == operator but it doesn't help.
I have a scenario in which I want to dispose of the singleton instance and initialize it with different parameter. For example my singelton instance is DBAccess and I want to intialize it with different server name. Therefore in between the calls of disposing of the singleton instance and intialize it with different server name ; there may be call of null check. In that case my singelton instance will be initialize with old server name.
Please help!!