summaryrefslogtreecommitdiff
path: root/src/Notepad/Infrastructure/Extensions/StringExtensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Notepad/Infrastructure/Extensions/StringExtensions.cs')
-rw-r--r--src/Notepad/Infrastructure/Extensions/StringExtensions.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Notepad/Infrastructure/Extensions/StringExtensions.cs b/src/Notepad/Infrastructure/Extensions/StringExtensions.cs
new file mode 100644
index 0000000..9c19f97
--- /dev/null
+++ b/src/Notepad/Infrastructure/Extensions/StringExtensions.cs
@@ -0,0 +1,13 @@
+using Notepad.Domain.FileSystem;
+
+namespace Notepad.Infrastructure.Extensions {
+ public static class StringExtensions {
+ public static string FormatWith(this string formattedString, params object[] arguments) {
+ return string.Format(formattedString, arguments);
+ }
+
+ public static IFilePath AsAnAbsoluteFilePath(this string rawFilePath) {
+ return new AbsoluteFilePath(rawFilePath);
+ }
+ }
+} \ No newline at end of file