Visual C# verbatim string syntax problem -



Visual C# verbatim string syntax problem -

i trying create string literal in visual c sharp. don't know why vs throwing errors html test have inserted @ "" should allow multi line , literal have read, doing wrong?

string test = @" <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <title>untitled document</title> <style type="text/css"> body{font-family:helvetica;} body{font-size:10px;} table{ border-collapse:collapse; } table{border:2px solid black; } table{font-family:helvetica;} table{font-size:17px;} td{border:1px solid #d2b9d3;} td{font-family:helvetica;} td{font-size:18px;} th{border:1px solid black;} .style4 {font-size: 36px} </style> </head> ";

you have replace " "" in html text , fine

c# string

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -