C#字符串格式编写问题
现有如下代码:
DXS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 9.83.70.13)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = dealer)
)
)
我现在想按格式原封不动输出,请问格式怎么写,要一模一样的
sw.Write("") 冒号里应该怎么填?
------解决方案--------------------
C# code
sw.Write(@"DXS =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 9.83.70.13)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = dealer)
)
)
");