我必须以这种方式形成一个字符串:
set value valuefunc(""-Material contents
-Material color
-Material origin "")
我试过这种方式:
s1=@"set value valuefunc("""""""";------8 double quotes
s2="-Material contents"+Char(10)+"-Material color"+Char(10)+"-Material origin"+Char(10);
s3=@"""""""")";
FinalString="\""+s1+s2+s3+"\"";
但它会以这种方式回归:
set value valuefunc("";
s2 = @"")- Material contents
-Material color
-Material origin