diff options
author | Dennis Kobert <d-kobert@web.de> | 2019-06-12 21:47:51 +0200 |
---|---|---|
committer | Dennis Kobert <d-kobert@web.de> | 2019-06-12 21:47:51 +0200 |
commit | 304437b834e8c87687f68333ae67a13ee1377a73 (patch) | |
tree | 51dd246568e8a159627d9cb92e99890adb5cbef8 /dsa/DSALib/Auxiliary/Extensions.cs | |
parent | 2fa4a0e50ebfc97059c8b84dbd17e79f9afc8a8d (diff) |
Adjust Codestyle
Diffstat (limited to 'dsa/DSALib/Auxiliary/Extensions.cs')
-rw-r--r-- | dsa/DSALib/Auxiliary/Extensions.cs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/dsa/DSALib/Auxiliary/Extensions.cs b/dsa/DSALib/Auxiliary/Extensions.cs index 7d367a5..b4fde67 100644 --- a/dsa/DSALib/Auxiliary/Extensions.cs +++ b/dsa/DSALib/Auxiliary/Extensions.cs @@ -1,11 +1,8 @@ -namespace DSALib.Auxiliary -{ - public static class StringExtension - { +namespace DSALib.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) - { + public static string AddSpaces(this string str, int length) { var temp = str; for (var i = str.Length; i < length; i++) temp += " "; return temp; @@ -15,8 +12,7 @@ //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) - { + public static string AddSpacesAtHead(this string str, int length) { var temp = ""; for (var i = str.Length; i < length; i++) temp += " "; return temp + str; |