/// <summary>
 /// Checks whether the license grants the given permission.
 /// </summary>
 /// <param name="permission">The permission to check for</param>
 /// <returns>Whether or not the license grants the permission</returns>
 internal bool HasPermission(RightsManagementPermissions permission)
 {
     return(((_userRights.Value & permission) == permission) && IsLicenseValid);
 }
        //------------------------------------------------------
        // Constructors (none)
        //------------------------------------------------------

        #endregion Constructors (none)

        #region Internal Methods
        //------------------------------------------------------
        // Internal Methods
        //------------------------------------------------------

        /// <summary>
        /// Adds a permission to the list of permissions saved in the license.
        /// </summary>
        /// <param name="permission">The permission to add.</param>
        internal void AddPermission(RightsManagementPermissions permission)
        {
            _userRights.Value |= permission;
        }