Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/300.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 摘要,已忽略成员的格式错误的XML注释_C#_Visual Studio - Fatal编程技术网

C# 摘要,已忽略成员的格式错误的XML注释

C# 摘要,已忽略成员的格式错误的XML注释,c#,visual-studio,C#,Visual Studio,我正在用Summary属性记录VS 2010中我的类成员。当我构建项目时,XML文件是build(稍后我将在开发中使用它)。类成员的一个摘要未包含在XML文件中,而是出现错误“为成员忽略格式错误的XML注释” 总结如下。我不明白什么格式不正确。我是否应该转义&字符并改用%26 /// <summary> /// URI of a web page to convert. Must start with http:// or https://. Several URI

我正在用Summary属性记录VS 2010中我的类成员。当我构建项目时,XML文件是build(稍后我将在开发中使用它)。类成员的一个摘要未包含在XML文件中,而是出现错误“为成员忽略格式错误的XML注释”

总结如下。我不明白什么格式不正确。我是否应该转义
&
字符并改用
%26

    /// <summary>
    /// URI of a web page to convert. Must start with http:// or https://. Several URI of web pages can be passed to create one PDF. For example if http://www.google.com+http://www.nytimes.com URI will be passed the two web pages will be merged into one PDF.
    /// If URI has special characters like ? or & they must be encoded.
    /// </summary>
//
///要转换的网页的URI。必须以http://或https://开头。可以传递网页的多个URI来创建一个PDF。例如,如果http://www.google.com+http://www.nytimes.com URI将被传递,两个网页将合并为一个PDF。
///如果URI有特殊字符,如?或者&它们必须被编码。
/// 

是的,您应该将
&
转义为
&

因为它是XML,所以必须对特殊字符进行编码。您的
&
标志(以前咬过我)需要替换为
&