From f2ea0ed0b6d1e754913de7dc96f6d7f79c5557c9 Mon Sep 17 00:00:00 2001 From: Harald Wolff Date: Thu, 26 Oct 2017 23:43:08 +0200 Subject: [PATCH] +CharExtensions --- CharExtensions.cs | 10 ++++++++++ sharp.extensions.csproj | 1 + 2 files changed, 11 insertions(+) create mode 100644 CharExtensions.cs 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