Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/297.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# c和代码标记之间的区别_C#_Xml Comments - Fatal编程技术网

C# c和代码标记之间的区别

C# c和代码标记之间的区别,c#,xml-comments,C#,Xml Comments,在C xml注释中,下面的标记之间有什么区别 1. <c> 2. <code> 代码标记与标记类似,但它旨在说明真正的代码使用示例。代码标签通常包含在标签集中,请参见下文 代码标记与标记类似,但它旨在说明真正的代码使用示例。代码标记通常包含在标记集中,请参见下文。如果您指的是代码注释,则通常在中使用表示多行说明性代码,其中as仅表示要以代码字体编写的单个术语 使用StasObjult/MaskDead作为比较,它们与Palrh中的内联代码完全相同,vs/p> a mu

在C xml注释中,下面的标记之间有什么区别

1. <c> 
2. <code>
代码标记与标记类似,但它旨在说明真正的代码使用示例。代码标签通常包含在标签集中,请参见下文


代码标记与标记类似,但它旨在说明真正的代码使用示例。代码标记通常包含在标记集中,请参见下文。

如果您指的是代码注释,则通常在中使用表示多行说明性代码,其中as仅表示要以代码字体编写的单个术语

使用StasObjult/MaskDead作为比较,它们与Palrh中的内联代码完全相同,vs/p>

a multi-line
code sample that
appears formatted separately

如果您的意思是在代码注释中,那么通常在中使用表示多行说明性代码,其中as仅表示用代码字体编写的单个术语

使用StasObjult/MaskDead作为比较,它们与Palrh中的内联代码完全相同,vs/p>

a multi-line
code sample that
appears formatted separately

假设您正在谈论的是,c就像StackOverflow中的倒勾,而代码更像是代码块

/// <summary>
/// This is the <c>SomeMethod</c> method of the <c>Program</c> class.
/// </summary>
/// <param name="s">A string.</param>
/// <example>
/// You can use this method like this:
/// <code>
/// string x = SomeMethod("foobar");
/// Console.WriteLine(x);
/// </code>
/// </example>
static string SomeMethod(string s){
    throw new NotImplementedException();
} 

假设您正在谈论的是,c就像StackOverflow中的倒勾,而代码更像是代码块

/// <summary>
/// This is the <c>SomeMethod</c> method of the <c>Program</c> class.
/// </summary>
/// <param name="s">A string.</param>
/// <example>
/// You can use this method like this:
/// <code>
/// string x = SomeMethod("foobar");
/// Console.WriteLine(x);
/// </code>
/// </example>
static string SomeMethod(string s){
    throw new NotImplementedException();
} 

你可能是指intellisense的xml代码注释吗?我怀疑否决票是因为最初的问题根本不清楚;基于先前删除的asp.net标记,我们假设您谈论的是html,其中只有一个标记被定义。您的意思可能是在intellisense的xml代码注释中?我怀疑反对票是因为原始问题根本不清楚。它甚至没有提到xml注释;基于前面的asp.net标记,我们假设您正在谈论html,其中只有一个标记被定义为+1,用于链接和非常描述性的答案。谢谢。+1的链接和非常描述性的答案。谢谢