0

why is var sydney = new Countries() { Name = @"<Image Source="Coors.jpeg" /> Sydney" };

flagging at the Coors.jpeg with syntax error, comma expected.

John
  • 3,965
  • 21
  • 77
  • 163

1 Answers1

3

As I said in my comment when using verbatim string you need to double the double quotes. ie:

var sydney = new Countries() { Name = @"<Image Source=""Coors.jpeg"" /> Sydney" };
Cetin Basoz
  • 22,495
  • 3
  • 31
  • 39