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?
public Boolean IsPalindrome(string value) { var one = value.ToList(); var two = one.Reverse().ToList(); return one.Equals(two); }