public bool IsPalindrome(string stringToCheck) { char[] rev = stringToCheck.Reverse().ToArray(); return (stringToCheck.Equals(new string(rev), StringComparison.OrdinalIgnoreCase)); }
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)