How C# or any other language NOT Equal to operator is solved
===

Hi which one is faster 

                int a = 100;
            //First Way
            if (a != 100)
            {
                //Do something when a is not equal to 100
            }
            else
            {
                //Do something when a is equal to 100
            }

            //Second Way
            if (a == 100)
            {
                //Do something when a is equal to 100
                
            }
            else
            {
                //Do something when a is not equal to 100
            }
I thinks second way is faster , but I am curious to Know how NOT EQUAL (!=) operator is solved . Is it like first it implements equal(==) operation and then the result is negated like !(a==100) ? Any help will be highly appericiated.  