Skip to content

Comma-separated string from a list: retarget net10.0, add generic and char-separator overloads - #2214

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/70358-csharp-create-comma-separated-string-from-list-of-strings
Open

vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/70358-csharp-create-comma-separated-string-from-list-of-strings

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Retargets both projects in strings-csharp/CreateCommaSeparatedStringFromListOfString from net6.0 to net10.0 and bumps the test packages to Microsoft.NET.Test.Sdk 18.10.1, xunit 2.9.3, xunit.runner.visualstudio 4.0.0 and coverlet.collector 10.0.1.

Adds two samples the article needs: string.Join over a List, which the generic overload handles without a Select, and the char separator overload. Two matching facts cover them.

Drops the new-console-template comment and lifts the test file to a file-scoped namespace and a collection expression.

Build succeeded with 0 warnings and 0 errors; 5 of 5 tests pass on SDK 10.0.302, runtime 10.0.10.

… char-separator overloads

Retarget both projects from net6.0 to net10.0 and bump the test packages
(Microsoft.NET.Test.Sdk 18.10.1, xunit 2.9.3, xunit.runner.visualstudio 4.0.0,
coverlet.collector 10.0.1).

Add two samples the article needs: string.Join over a List<int>, which the
generic overload handles without a Select, and the char separator overload.
Two matching facts cover them.

Drop the new-console-template comment and lift the test file to a file-scoped
namespace and a collection expression.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant