[Facades] Update with new typeforwarders/APIs (#4838)
[mono.git] / mcs / class / corlib / System.Security.Principal / IdentityReference.cs
index b6e6f3039408ac5e6b1ea24a1234b92113296449..19165a9778acc9ec670cf08fa7442bd00439a42d 100644 (file)
@@ -26,7 +26,6 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
 
 using System.Globalization;
 using System.Runtime.InteropServices;
@@ -36,6 +35,13 @@ namespace System.Security.Principal {
        [ComVisible (false)]
        public abstract class IdentityReference {
 
+               // yep, this means it cannot be inherited outside corlib
+               // not sure if this is "by design" reported as FDBK30180
+               internal IdentityReference ()
+               {
+               }
+
+
                public abstract string Value { 
                        get;
                }
@@ -54,22 +60,21 @@ namespace System.Security.Principal {
 
                public static bool operator== (IdentityReference left, IdentityReference right)
                {
-                       if (left == null)
-                               return (right == null);
-                       if (right == null)
+                       if (((object)left) == null)
+                               return (((object)right) == null);
+                       if (((object)right) == null)
                                return false;
                        return (left.Value == right.Value);
                }
 
                public static bool operator!= (IdentityReference left, IdentityReference right)
                {
-                       if (left == null)
-                               return (right != null);
-                       if (right == null)
+                       if (((object)left) == null)
+                               return (((object)right) != null);
+                       if (((object)right) == null)
                                return true;
                        return (left.Value != right.Value);
                }
        }
 }
 
-#endif