summaryrefslogtreecommitdiff
path: root/DiscoBot/Auxiliary/Extensions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'DiscoBot/Auxiliary/Extensions.cs')
-rw-r--r--DiscoBot/Auxiliary/Extensions.cs33
1 files changed, 0 insertions, 33 deletions
diff --git a/DiscoBot/Auxiliary/Extensions.cs b/DiscoBot/Auxiliary/Extensions.cs
deleted file mode 100644
index fad5dd8..0000000
--- a/DiscoBot/Auxiliary/Extensions.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-namespace DiscoBot.Auxiliary
-{
- public static class StringExtension
- {
- //This mehod extends string. It adds spaces until a fixed length is reached.
- //If the original string is already longer, it is returner unmodified.
- public static string AddSpaces(this string str, int length)
- {
- string temp = str;
- for(int i = str.Length; i < length; i++)
- {
- temp += " ";
- }
- return temp;
- }
-
-
-
- //This mehod extends string.
- //It adds spaces at the HEAD of a string until a fixed length is reached.
- //If the original string is already longer, it is returner unmodified.
- public static string AddSpacesAtHead(this string str, int length)
- {
- string temp = "";
- for (int i = str.Length; i < length; i++)
- {
- temp += " ";
- }
- return temp + str;
- }
- }
-
-}