Merge pull request #3528 from BrzVlad/fix-sgen-check-before-collections
[mono.git] / mcs / class / System / System.Security.AccessControl / SemaphoreAccessRule.cs
index 97b7b1c70c78e41f3e330d57ccee2a304d288278..c9754ea29997238d897cbc86e023eda7b1852677 100644 (file)
@@ -34,16 +34,16 @@ namespace System.Security.AccessControl {
        public sealed class SemaphoreAccessRule : AccessRule
        {
                public SemaphoreAccessRule (IdentityReference identity,
-                                           SemaphoreRights semaphoreRights,
+                                           SemaphoreRights eventRights,
                                            AccessControlType type)
-                       : base (identity, (int)semaphoreRights, false, InheritanceFlags.None, PropagationFlags.None, type)
+                       : base (identity, (int)eventRights, false, InheritanceFlags.None, PropagationFlags.None, type)
                {
                }
 
                public SemaphoreAccessRule (string identity,
-                                           SemaphoreRights semaphoreRights,
+                                           SemaphoreRights eventRights,
                                            AccessControlType type)
-                       : this (new NTAccount (identity), semaphoreRights, type)
+                       : this (new NTAccount (identity), eventRights, type)
                {
                }