I have a string as input and have to break the string in two substrings. If the left substring equals the right substring then do some logic.
How can I do this?
In C# :
public bool EhPalindromo(string text) { var reverseText = string.Join("", text.ToLower().Reverse()); return reverseText == text; }