csharp Check whether the String is a palindrome or not.
Code Example - csharp Check whether the String is a palindrome or not.
public static bool IsPalindrome(string str)
{
return str.SequenceEqual(str.Reverse());
}