Creates an example section. This is a top-level tag.
Syntax
<example>example</example>
Your sample code should be enclosed within <code> tags. You can use comment editor to do it.
Visual Basic
|
Copy Code
|
''' <summary>Our sample property.</summary>
''' <example>This is an example how to use prop1 and prop2 properties:
''' <code> Try
''' If Me.prop1 <> "hello" Then
''' prop2 = DllModule1.sampleEnum.value2
''' End If
''' Catch ex As nestedException
''' prop2 = DllModule1.sampleEnum.value1
''' End Try</code></example>
Property prop1() As String
|
C#
|
Copy Code
|
/// <summary>Our sample property.</summary>
/// <example>This is an example how to use prop1 and prop2 properties:
/// <code> try {
/// if (this.prop1 != "hello") {
/// prop2 = DllModule1.sampleEnum.value2;
/// }
/// }
/// catch (nestedException ex) {
/// prop2 = DllModule1.sampleEnum.value1;
/// }</code></example>
public string prop1
|
|