예제 #1
0
        /// <summary>
        /// The check.
        /// </summary>
        /// <param name="permissions">
        /// The permissions.
        /// </param>
        /// <param name="permission">
        /// The permission.
        /// </param>
        /// <returns>
        /// The check.
        /// </returns>
        public static bool Check([NotNull] this IPermissions permissions, int permission)
        {
            CodeContracts.VerifyNotNull(permissions, "permissions");

            return(permissions.Check((ViewPermissions)permission));
        }