Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

Go to top

To check string is palindrome or not in .NET (C#)

, 6 Feb 2011
How about:public bool IsPalindrome(string stringToCheck){ char[] rev = stringToCheck.Reverse().ToArray(); return (stringToCheck.Equals(new string(rev), StringComparison.OrdinalIgnoreCase));}

Revisions


  

Compare Revision Minor Date Status Editor
1 No 3-Feb-11 15:15 Composing ZamirF

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

ZamirF

United States United States
No Biography provided

| Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 7 Feb 2011
Article Copyright 2011 by ZamirF
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid