From e57145483b1bcf47c74e1809704037839a0d9616 Mon Sep 17 00:00:00 2001 From: Fionn Date: Wed, 25 May 2022 08:57:17 +0200 Subject: [PATCH] added splitting string functionality --- Checksums/dotFionn.Checksum.Utils/Extensions.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Checksums/dotFionn.Checksum.Utils/Extensions.cs b/Checksums/dotFionn.Checksum.Utils/Extensions.cs index 9bcbf95..e5b1b22 100644 --- a/Checksums/dotFionn.Checksum.Utils/Extensions.cs +++ b/Checksums/dotFionn.Checksum.Utils/Extensions.cs @@ -1,4 +1,5 @@ using System; +using System.Linq; namespace dotFionn.Checksum.Utils { @@ -15,5 +16,10 @@ namespace dotFionn.Checksum.Utils return digitSum; } + + public static string[] Split(this string inString) + { + return inString.Select(x => x.ToString()).ToArray(); + } } }