You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Considering these next C# code snippets results is the trimmed string "text", " text ".Split(',', StringSplitOptions.TrimEntries) " text ".Split(",", StringSplitOptions.TrimEntries) " text ".Split(new char[] {','}, StringSplitOptions.TrimEntries)
This next code should have the same result: " text ".Split(new string[] {","}, StringSplitOptions.TrimEntries)
The result of this last call is " text ", not trimmed.
Configuration
Dotnet version 6.0.100
OS: MacOs BigSur 11.4
Architecture: x64
Regression?
Not verified in previous versions
The text was updated successfully, but these errors were encountered:
Tagging subscribers to this area: @dotnet/area-system-runtime
See info in area-owners.md if you want to be subscribed.
Issue Details
Description
Considering these next C# code snippets results is the trimmed string "text", " text ".Split(',', StringSplitOptions.TrimEntries) " text ".Split(",", StringSplitOptions.TrimEntries) " text ".Split(new char[] {','}, StringSplitOptions.TrimEntries)
This next code should have the same result: " text ".Split(new string[] {","}, StringSplitOptions.TrimEntries)
The result of this last call is " text ", not trimmed.
Configuration
Dotnet version 6.0.100
OS: MacOs BigSur 11.4
Architecture: x64
Description
Considering these next C# code snippets results is the trimmed string "text",
" text ".Split(',', StringSplitOptions.TrimEntries)
" text ".Split(",", StringSplitOptions.TrimEntries)
" text ".Split(new char[] {','}, StringSplitOptions.TrimEntries)
This next code should have the same result:
" text ".Split(new string[] {","}, StringSplitOptions.TrimEntries)
The result of this last call is " text ", not trimmed.
Configuration
Dotnet version 6.0.100
OS: MacOs BigSur 11.4
Architecture: x64
Regression?
Not verified in previous versions
The text was updated successfully, but these errors were encountered: