I have strings like: “7d” , “5m” , “95d” etc.
I need to find simple way to be able to get integer and char in the end separately.
How can I achieve this:
int number = GetNumber("95d"); //should return 95
char code = GetCode("95d"); // should return d
Simple alternative to the RegEx solutions.
You could make ‘Seperate’ an extension method on string to make things a bit cleaner.