![]() |
|||
|
About Article
Alternative to To check string is palindrome or not in .NET (C#)
How about:public bool IsPalindrome(string stringToCheck){ char[] rev = stringToCheck.Reverse().ToArray(); return (stringToCheck.Equals(new string(rev), StringComparison.OrdinalIgnoreCase));}
Top News
The Next Version of Android - Some of What's Coming Get the Insider News free each morning.Related Videos
Related Articles
|
||||||||||||||