diff options
author | Justin Van Patten <jvp@justinvp.com> | 2017-01-20 08:27:06 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-01-20 08:27:06 +0300 |
commit | c0f65c82ed00359964c83bd5faa0563deb20d99a (patch) | |
tree | 27f440604a45651242f51a15dbe018879937db2a | |
parent | f41ee4682b8c7cfeb60fad14cae9757ff361b566 (diff) |
Cleanup uses of string.Split (#2548)
3 files changed, 3 insertions, 3 deletions
diff --git a/src/System.Private.CoreLib/src/System/Globalization/JapaneseCalendar.Win32.cs b/src/System.Private.CoreLib/src/System/Globalization/JapaneseCalendar.Win32.cs index 55e78f5d5..a83c4fad9 100644 --- a/src/System.Private.CoreLib/src/System/Globalization/JapaneseCalendar.Win32.cs +++ b/src/System.Private.CoreLib/src/System/Globalization/JapaneseCalendar.Win32.cs @@ -171,7 +171,7 @@ namespace System.Globalization // Get Strings // // Needs to be a certain length e_a_E_A at least (7 chars, exactly 4 groups) - String[] names = data.Split(new char[] { '_' }); + String[] names = data.Split('_'); // Should have exactly 4 parts // 0 - Era Name diff --git a/src/System.Private.CoreLib/src/System/TimeZoneInfo.Win32.cs b/src/System.Private.CoreLib/src/System/TimeZoneInfo.Win32.cs index 7c7711906..326f1718d 100644 --- a/src/System.Private.CoreLib/src/System/TimeZoneInfo.Win32.cs +++ b/src/System.Private.CoreLib/src/System/TimeZoneInfo.Win32.cs @@ -830,7 +830,7 @@ namespace System // filePath = "C:\Windows\System32\tzres.dll" // resourceId = -100 // - string[] resources = resource.Split(new char[] { ',' }, StringSplitOptions.None); + string[] resources = resource.Split(','); if (resources.Length != 2) { return String.Empty; diff --git a/src/System.Private.CoreLib/src/System/Version.cs b/src/System.Private.CoreLib/src/System/Version.cs index 31f062c82..13404bfd7 100644 --- a/src/System.Private.CoreLib/src/System/Version.cs +++ b/src/System.Private.CoreLib/src/System/Version.cs @@ -256,7 +256,7 @@ namespace System return false; } - String[] parsedComponents = version.Split(new char[] { '.' }); + String[] parsedComponents = version.Split('.'); int parsedComponentsLength = parsedComponents.Length; if ((parsedComponentsLength < 2) || (parsedComponentsLength > 4)) { |