C# is miles away from C or C++, but surprisingly this function is the same.In C# you use the strcmp(string1,string2) function.
Actually, the two functions would be very, very different since, in C#, a string is a true object. At best they would have kept the functional interface essentially the same, but in C# the string comparison function is string.Compare(s1, s2, case_insensitive) where s1 and s2 are string objects and case_insensitive is an optional Boolean expression.C# is miles away from C or C++, but surprisingly this function is the same.