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,853
  • 20
  • 69
  • 146

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
  • 18,243
  • 2
  • 24
  • 36