Does C# have an equivalent to Ruby’s string successor method?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, there’s no built-in equivalent, although of course you can create your own. I’d suggest the skeleton of something like this:
Personally I think I’d want rather more restricted semantics personally, with a specific set of characters to use. The description given in the Ruby docs seems to be along the lines of “we’ll work with anything” rather than failing if you’re trying to do something which doesn’t really make sense. I certainly wouldn’t want to increment some arbitrary UTF-16 code unit when I was expecting A-Z, 0-9.