Skip to content

Really helpful tutorial! I noticed a minor copy/paste issue in unit test code I wanted to report. #11826

@codecadwallader

Description

@codecadwallader

I really appreciated this tutorial and it has helped me a lot in getting my feet with with Roslyn. Thank you very much for putting it together!

I did notice one simple copy/paste issue within the "Add the final polish" section. The code snippets for StringDeclarationUsesVar and StringDeclarationUsesVarFixedHasType have the same integer definitions from the section above instead of string definitions. They can simply be changed respectively as:

var item = 4; --> var item = ""abc"";
const int item = 4; --> const string item = ""abc"";

Hope it helps and thanks again. :)


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Labels

dotnet-csharp/svckudosIndicates issues that are compliments about docs [org][type][category]

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions