diff --git a/CharExtensions.cs b/CharExtensions.cs new file mode 100644 index 0000000..c33d60b --- /dev/null +++ b/CharExtensions.cs @@ -0,0 +1,10 @@ +using System; +namespace sharp.extensions +{ + public static class CharExtensions + { + public static bool isDigit(this char ch){ + return ((ch >= '0') && (ch <= '9')); + } + } +} diff --git a/sharp.extensions.csproj b/sharp.extensions.csproj index ba2f16a..8de292c 100644 --- a/sharp.extensions.csproj +++ b/sharp.extensions.csproj @@ -39,6 +39,7 @@ + \ No newline at end of file