Example #1
0
 private bool?GetBit(PermissionsBits pos)
 {
     if (Allow.GetBit(pos))
     {
         return(true);
     }
     else if (Deny.GetBit(pos))
     {
         return(false);
     }
     else
     {
         return(null);
     }
 }
Example #2
0
 private void SetBit(PermissionsBits pos, bool?value)
 {
     if (value == true)
     {
         Allow.SetBit(pos, true);
         Deny.SetBit(pos, false);
     }
     else if (value == false)
     {
         Allow.SetBit(pos, false);
         Deny.SetBit(pos, true);
     }
     else
     {
         Allow.SetBit(pos, false);
         Deny.SetBit(pos, false);
     }
 }
Example #3
0
 internal void SetBit(PermissionsBits bit, bool value)
 {
     CheckLock(); SetBitInternal((byte)bit, value);
 }
Example #4
0
		private void SetBit(PermissionsBits pos, bool? value)
		{
			if (value == true)
			{
				Allow.SetBit(pos, true);
				Deny.SetBit(pos, false);
			}
			else if (value == false)
			{
				Allow.SetBit(pos, false);
				Deny.SetBit(pos, true);
			}
			else
			{
				Allow.SetBit(pos, false);
				Deny.SetBit(pos, false);
			}
		}
Example #5
0
 internal bool GetBit(PermissionsBits bit) => _rawValue.HasBit((byte)bit);
Example #6
0
		private bool? GetBit(PermissionsBits pos)
		{
			if (Allow.GetBit(pos))
				return true;
			else if (Deny.GetBit(pos))
				return true;
			else
				return false;
		}
Example #7
0
		internal void SetBit(PermissionsBits pos, bool value) { CheckLock(); SetBitInternal((byte)pos, value); }
Example #8
0
		internal bool GetBit(PermissionsBits pos) => BitHelper.GetBit(_rawValue, (int)pos);
Example #9
0
 internal bool GetBit(PermissionsBits bit) => _rawValue.HasBit((byte)bit);
Example #10
0
 internal bool GetBit(PermissionsBits pos) => BitHelper.GetBit(_rawValue, (int)pos);