summaryrefslogtreecommitdiff
path: root/DSACore/Auxiliary/Extensions.cs
diff options
context:
space:
mode:
authorDennis Kobert <d-kobert@web.de>2019-05-19 17:58:42 +0200
committerDennis Kobert <d-kobert@web.de>2019-05-19 17:58:42 +0200
commit2ab4051c6fe720dc47e99b0c305a0d779ee02d51 (patch)
tree9510ddbb174a54474934adf7991a5ba2aa39f818 /DSACore/Auxiliary/Extensions.cs
parentc4d046858e0822b7c2c540ac2368b2c0e88e7a26 (diff)
Moved Gamelogic to DSALib
Diffstat (limited to 'DSACore/Auxiliary/Extensions.cs')
-rw-r--r--DSACore/Auxiliary/Extensions.cs25
1 files changed, 0 insertions, 25 deletions
diff --git a/DSACore/Auxiliary/Extensions.cs b/DSACore/Auxiliary/Extensions.cs
deleted file mode 100644
index f8e9d8e..0000000
--- a/DSACore/Auxiliary/Extensions.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-namespace DSACore.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)
- {
- var temp = str;
- for (var 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)
- {
- var temp = "";
- for (var i = str.Length; i < length; i++) temp += " ";
- return temp + str;
- }
- }
-} \ No newline at end of file