summary refs log tree commit diff
path: root/LibGit/Extensions/StringExtensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'LibGit/Extensions/StringExtensions.cs')
-rw-r--r--LibGit/Extensions/StringExtensions.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/LibGit/Extensions/StringExtensions.cs b/LibGit/Extensions/StringExtensions.cs
new file mode 100644
index 0000000..f33bd4e
--- /dev/null
+++ b/LibGit/Extensions/StringExtensions.cs
@@ -0,0 +1,8 @@
+using System.Text;
+
+namespace LibGit.Extensions;
+
+public static class StringExtensions
+{
+    public static IEnumerable<byte> AsBytes(this string str) => Encoding.UTF8.GetBytes(str);
+}
\ No newline at end of file