The <example> tag describes an example of how to use a type or member.
<example>description</example>
where:
All types and members.
Commonly, this tag is used with the <code> tag.
[C#] public class MyClass { /// <summary> /// The GetZero method. /// </summary> /// <example> This sample shows how to call the GetZero method. /// <code> /// class MyClass /// { /// public static int Main() /// { /// return GetZero(); /// } /// } /// </code> /// </example> public static int GetZero() { return 0; } }
Tag Usage | NDoc Tags | <code> | Microsoft's definition
NDoc development is hosted by |