Just for fun:
return myString.SequenceEqual(myString.Reverse());
More Related Contents:
- C# how to check if a string contains 3 times the same letters in a row [closed]
- What’s wrong with my function? C# [closed]
- How to trim after 1 letter from space C#? [closed]
- How would you count occurrences of a string (actually a char) within a string?
- How to convert UTF-8 byte[] to string
- How do I parse a string with a decimal point to a double?
- Splitting a string into chunks of a certain size
- Color different parts of a RichTextBox string
- How can I String.Format a TimeSpan object with a custom format in .NET?
- Convert int to string?
- Convert string to DateTime in c#
- String Concatenation using ‘+’ operator
- Difference between string and StringBuilder in C#
- How to parse a string into a nullable int
- Compare version numbers without using split function
- Split a string with delimiters but keep the delimiters in the result in C#
- How to initialize a list of strings (List) with many string values
- How to convert DateTime to/from specific string format (both ways, e.g. given Format is “yyyyMMdd”)?
- How do I get around the “‘” problem in sqlite and c#?
- Converting string expression to Integer Value using C# [duplicate]
- Compare String and Object in C#
- Parsing HTML to get content using C#
- How to extend C# built-in types, like String?
- Split String into smaller Strings by length variable
- How to define an enum with string value?
- Java equivalent of C#’s verbatim strings with @
- Converting a byte to a binary string in c#
- string.Empty vs null.Which one do you use?
- Get values between curly braces c#
- splitting a string based on multiple char delimiters