How to remove red lines

  • Thread starter Thread starter BenTam
  • Start date Start date
B

BenTam

Guest
I copy and simplify the following code from a Microsoft webpage. However the word "Coffee" is redlined. Anyway to remove the red lines?

using System;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace AsyncBreakfast
{
class Program
{
static async Task Main(string[] args)
{
Coffee cup = PourCoffee();
}

private static Coffee PourCoffee()
{
Console.WriteLine("Pouring coffee");
return new Coffee();
}
}
}

Continue reading...
 
Back
Top