2010-04-28 Marek Habersack <mhabersack@novell.com>
[mono.git] / mcs / class / System.Web / System.Web.Security / RolePrincipal.cs
index 36d0211f0a2a9f5437d10c85b75e16b162261e25..ed23ec7ba7938bd9b09b309293126a51ed09815e 100644 (file)
@@ -6,7 +6,7 @@
 //     Sebastien Pouliot  <sebastien@ximian.com>
 //
 // (C) 2003 Ben Maurer
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2005-2010 Novell, Inc (http://www.novell.com)
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
@@ -28,8 +28,6 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
-#if NET_2_0
-
 using System.Collections.Specialized;
 using System.Security.Cryptography;
 using System.Security.Permissions;
@@ -42,7 +40,12 @@ namespace System.Web.Security {
 
        [Serializable]
        [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
-       public sealed class RolePrincipal : IPrincipal {
+#if NET_4_0
+       public
+#else
+       public sealed
+#endif
+       class RolePrincipal : IPrincipal {
 
                IIdentity _identity;
                bool _listChanged;
@@ -351,5 +354,5 @@ namespace System.Web.Security {
                }
        }
 }
-#endif
+