System.Security.Policy.HashMembershipCondition.HashMembershipCondition.Compare C# (CSharp) Method

Compare() private method

private Compare ( byte expected, byte actual ) : bool
expected byte
actual byte
return bool
		private bool Compare (byte[] expected, byte[] actual)
		{
			if (expected.Length != actual.Length)
				return false;
			
			int len = expected.Length;
			for (int i = 0; i < len; i++) {
				if (expected [i] != actual [i])
					return false;
			}
			return true;
		}