I'm new to C#, just a question on the design idea of using static method. For example, we know that Char is struct and has the following static method:
public static bool IsDigit(Char c);
so when we check if a char is a digit, we can code :
char myChar = '8';
if (char.IsDigit(myChar)) {
...
}
but why language implementers make this specific design decision? they can also make it non-static as:
public bool IsDigit();
so we can code like:
char myChar = '8';
if (myChar.IsDigit()) {
...
}