如何显示“<” C#XML注释中的char? [英] How to show '<' char in C# XML comments?

查看:109
本文介绍了如何显示“<” C#XML注释中的char?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我进行了很多搜索,但找不到如何在C#XML注释中显示'<'字符?

I searched a lot, but couldn't find how to show '<' char in C# XML comments?

推荐答案

您是否尝试过& lt; 的常规XML转义-应该有效,我相信:

Did you try the normal XML escaping of &lt; - that should work, I believe:

/// <summary>
/// Less than is &lt;
/// Greater than is &gt;
/// Ampersand is &amp;
/// </summary>

基本上是普通的XML。

Basically it's normal XML.

这篇关于如何显示“&lt;” C#XML注释中的char?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆