System.Byte.Equals C# (CSharp) Method

Equals() public method

public Equals ( byte obj ) : bool
obj byte
return bool
        public bool Equals(byte obj)
        {
            return Equals((object)obj);
        }

Same methods

Byte::Equals ( object obj ) : bool

Usage Example

    public bool PosTest1()
    {
        bool retVal = true;

        UnicodeEncoding uE = new UnicodeEncoding(true,false);

        Byte[] expectedValue = new Byte[] { };
        Byte[] actualValue;

        TestLibrary.TestFramework.BeginScenario("PosTest1:Invoke the method with bigEndian true and byteOrderMark false.");
        try
        {
            actualValue = uE.GetPreamble();

            if (expectedValue.Equals(actualValue))
            {
                TestLibrary.TestFramework.LogError("001", "ExpectedValue(" + expectedValue + ") !=ActualValue(" + actualValue + ")");
                retVal = false;
            }

        }
        catch (Exception e)
        {
            TestLibrary.TestFramework.LogError("002", "Unexpected exception:" + e);
            retVal = false;
        }
        return retVal;
    }
All Usage Examples Of System.Byte::Equals