[corlib] Fix public api
authorMarek Safar <marek.safar@gmail.com>
Tue, 20 May 2014 17:35:00 +0000 (19:35 +0200)
committerMarek Safar <marek.safar@gmail.com>
Tue, 20 May 2014 17:35:25 +0000 (19:35 +0200)
mcs/class/corlib/System.Security.Principal/WindowsIdentity.cs

index f05857016ea232a7f622d175dd32e9a6159544c1..3599d6429ecf851435160fcbf4f791b9169d9f25 100644 (file)
@@ -172,7 +172,9 @@ namespace System.Security.Principal {
                }
 
                // properties
-
+#if NET_4_5
+               sealed override
+#endif
                public string AuthenticationType {
                        get { return _type; }
                }
@@ -182,7 +184,12 @@ namespace System.Security.Principal {
                        get { return (_account == WindowsAccountType.Anonymous); }
                }
 
-               public virtual bool IsAuthenticated
+#if NET_4_5
+               override
+#else
+               virtual
+#endif
+               public bool IsAuthenticated
                {
                        get { return _authenticated; }
                }
@@ -197,7 +204,12 @@ namespace System.Security.Principal {
                        get { return (_account == WindowsAccountType.System); }
                }
 
-               public virtual string Name
+#if NET_4_5
+               override
+#else
+               virtual
+#endif
+               public string Name
                {
                        get {
                                if (_name == null) {