The <example> tag describes an example of how to use a type or member.
<example>description</example>
where:
- description
- A description of the code sample.
Applies To
All types and members.
Remarks
Commonly, this tag is used with the <code> tag.
Example
[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; } }