Example #1
0
        static void checkEquality(Slip aSlip, Slip anotherSlip)
        {
            string temp;
            bool   status = aSlip.Equals(anotherSlip);

            temp = string.Format("Comparing Slips: ");

            if (aSlip.Equals(anotherSlip) && anotherSlip.Equals(aSlip))
            {
                temp += string.Format("Are Slips Equal? : {0} >>", status);
                temp += string.Format(" Hasscode: {0} and {1}\n", aSlip.GetHashCode(), anotherSlip.GetHashCode());
            }
            else
            {
                temp += string.Format("Are Slips Equal? : {0}\n", status);
            }
            Console.WriteLine(temp);
        }