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
{{ message }}
Repository navigation
C# 6 tutorial: missing require in nameof step #14226
file.cs(10,9): error CS0246: The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)
file.cs(10,34): error CS0246: The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)
Document details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
ID: 1a3686c2-4c73-5686-0da9-abc38c74aeec
Version Independent ID: ca995f80-9375-e9ca-b855-6e6893581e23
Activity
add missing namespace
Update csharp-6.yml
Update csharp-6.yml (#14230)
nemrism commentedon Sep 5, 2019
@BillWagner, I just noticed that another step is missing a
using:In the step 5, A better string format, in order to use the following code:
var wordLength = from word in phrase.Split(" ") select word.Length;We should add the following using:
using System.LinqHow do you want to add this?
BillWagner commentedon Sep 5, 2019
@nemrism I can do that. Or do you want to make a new PR?
nemrism commentedon Sep 5, 2019
I'll let you add it directly @BillWagner
You'll also need to change the line of code to:
var wordLength = from word in phrase.Split(' ') select word.Length;It doesn't compile with a string parameter in the C#interactive experience!
change Split call to a char argument
add instruction to include system.linq
change Split call to a char argument (#1417)