diff options
author | Dennis Kobert <d-kobert@web.de> | 2019-06-11 23:38:13 +0200 |
---|---|---|
committer | Dennis Kobert <d-kobert@web.de> | 2019-06-11 23:38:13 +0200 |
commit | 2fa4a0e50ebfc97059c8b84dbd17e79f9afc8a8d (patch) | |
tree | c3b34ccb2737e347a73768536895cbbaab13cc01 /DSACore/Auxiliary/Extensions.cs | |
parent | ec991104f56e90d7bb2878da2fe6ed4e585dfc46 (diff) | |
parent | af74efccf8d21e6151022b71f3cacd3fa83024ee (diff) |
Merge branch 'rework-backend'
Diffstat (limited to 'DSACore/Auxiliary/Extensions.cs')
-rw-r--r-- | DSACore/Auxiliary/Extensions.cs | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/DSACore/Auxiliary/Extensions.cs b/DSACore/Auxiliary/Extensions.cs deleted file mode 100644 index 8ef6298..0000000 --- a/DSACore/Auxiliary/Extensions.cs +++ /dev/null @@ -1,33 +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) - { - 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; - } - } - -} |