Creates example section.

Syntax

<example>example</example>

Your sample code should be enclosed within <code> tags. You can use comment editor to do it.

Examples

Visual Basic

''' <summary>Our sample property.</summary>

''' <example>This is an example how to use prop1 and prop2 properties:

''' <code>  Try

'''      If Me.prop1 &lt;&gt; &quot;hello&quot; Then

'''          prop2 = DllModule1.sampleEnum.value2

'''      End If

'''  Catch ex As nestedException

'''      prop2 = DllModule1.sampleEnum.value1

'''  End Try</code></example>

Property prop1() As String

C#

/// <summary>Our sample property.</summary>

/// <example>This is an example how to use prop1 and prop2 properties:

/// <code>  try {

///     if (this.prop1 != &quot;hello&quot;) {

///       prop2 = DllModule1.sampleEnum.value2;

///     }

///   }

///   catch (nestedException ex) {

///     prop2 = DllModule1.sampleEnum.value1;

///   }</code></example>

public string prop1

 

See Also