|
49 | 49 |
|
50 | 50 | You can use Ildasm.exe to examine the MSIL for the compiled code example, to see how the offsets and lengths are calculated.
|
51 | 51 |
|
52 |
| -> [!NOTE] |
53 |
| -> Not all computer languages can generate <xref:System.Reflection.ExceptionHandlingClauseOptions.Filter?displayProperty=nameWithType> clauses. The Visual Basic example shows a filter clause, using a Visual Basic `When` expression, which is omitted from the examples for other languages. |
54 | 52 |
|
55 | 53 | This code is part of a larger example located in the <xref:System.Reflection.MethodBody> class topic.
|
56 | 54 |
|
|
156 | 154 |
|
157 | 155 | ## Examples
|
158 | 156 | The following code example defines a test method named `MethodBodyExample`, and displays its local variable information and exception-handling clauses. The <xref:System.Reflection.MethodBase.GetMethodBody%2A?displayProperty=nameWithType> method is used to obtain a <xref:System.Reflection.MethodBody> object for the test method. The <xref:System.Reflection.MethodBody.ExceptionHandlingClauses%2A> property is used to obtain a list of <xref:System.Reflection.ExceptionHandlingClause> objects and display their properties.
|
159 |
| - |
160 |
| -> [!NOTE] |
161 |
| -> Not all computer languages can generate <xref:System.Reflection.ExceptionHandlingClauseOptions.Filter?displayProperty=nameWithType> clauses. The Visual Basic example shows a filter clause, using a Visual Basic `When` expression, which is omitted from the examples for other languages. |
| 157 | + |
162 | 158 |
|
163 | 159 | This code is part of a larger example located in the <xref:System.Reflection.MethodBody> class topic.
|
164 | 160 |
|
|
275 | 271 | ## Examples
|
276 | 272 | The following code example defines a test method named `MethodBodyExample`, and displays its local variable information and exception-handling clauses. The <xref:System.Reflection.MethodBase.GetMethodBody%2A?displayProperty=nameWithType> method is used to obtain a <xref:System.Reflection.MethodBody> object for the test method. The <xref:System.Reflection.MethodBody.ExceptionHandlingClauses%2A> property is used to obtain a list of <xref:System.Reflection.ExceptionHandlingClause> objects and display their properties.
|
277 | 273 |
|
278 |
| -> [!NOTE] |
279 |
| -> Not all computer languages can generate <xref:System.Reflection.ExceptionHandlingClauseOptions.Filter?displayProperty=nameWithType> clauses. The Visual Basic example shows a filter clause, using a Visual Basic `When` expression, which is omitted from the examples for other languages. |
280 | 274 |
|
281 | 275 | This code is part of a larger example located in the <xref:System.Reflection.MethodBody> class topic.
|
282 | 276 |
|
|
345 | 339 | ## Examples
|
346 | 340 | The following code example defines a test method named `MethodBodyExample`, and displays its local variable information and exception-handling clauses. The <xref:System.Reflection.MethodBase.GetMethodBody%2A?displayProperty=nameWithType> method is used to obtain a <xref:System.Reflection.MethodBody> object for the test method. The <xref:System.Reflection.MethodBody.ExceptionHandlingClauses%2A> property is used to obtain a list of <xref:System.Reflection.ExceptionHandlingClause> objects and display their properties.
|
347 | 341 |
|
348 |
| -> [!NOTE] |
349 |
| -> Not all computer languages can generate <xref:System.Reflection.ExceptionHandlingClauseOptions.Filter?displayProperty=nameWithType> clauses. The Visual Basic example shows a filter clause, using a Visual Basic `When` expression, which is omitted from the examples for other languages. |
350 | 342 |
|
351 | 343 | This code is part of a larger example located in the <xref:System.Reflection.MethodBody> class topic.
|
352 | 344 |
|
|
414 | 406 | ## Examples
|
415 | 407 | The following code example defines a test method named `MethodBodyExample`, and displays its local variable information and exception-handling clauses. The <xref:System.Reflection.MethodBase.GetMethodBody%2A?displayProperty=nameWithType> method is used to obtain a <xref:System.Reflection.MethodBody> object for the test method. The <xref:System.Reflection.MethodBody.ExceptionHandlingClauses%2A> property is used to obtain a list of <xref:System.Reflection.ExceptionHandlingClause> objects and display their properties.
|
416 | 408 |
|
417 |
| -> [!NOTE] |
418 |
| -> Not all computer languages can generate <xref:System.Reflection.ExceptionHandlingClauseOptions.Filter?displayProperty=nameWithType> clauses. The Visual Basic example shows a filter clause, using a Visual Basic `When` expression, which is omitted from the examples for other languages. |
419 | 409 |
|
420 | 410 | This code is part of a larger example located in the <xref:System.Reflection.MethodBody> class topic.
|
421 | 411 |
|
|
519 | 509 | ## Examples
|
520 | 510 | The following code example defines a test method named `MethodBodyExample`, and displays its local variable information and exception-handling clauses. The <xref:System.Reflection.MethodBase.GetMethodBody%2A?displayProperty=nameWithType> method is used to obtain a <xref:System.Reflection.MethodBody> object for the test method. The <xref:System.Reflection.MethodBody.ExceptionHandlingClauses%2A> property is used to obtain a list of <xref:System.Reflection.ExceptionHandlingClause> objects and display their properties.
|
521 | 511 |
|
522 |
| -> [!NOTE] |
523 |
| -> Not all computer languages can generate <xref:System.Reflection.ExceptionHandlingClauseOptions.Filter?displayProperty=nameWithType> clauses. The Visual Basic example shows a filter clause, using a Visual Basic `When` expression, which is omitted from the examples for other languages. |
524 | 512 |
|
525 | 513 | This code is part of a larger example located in the <xref:System.Reflection.MethodBody> class topic.
|
526 | 514 |
|
|
588 | 576 | ## Examples
|
589 | 577 | The following code example defines a test method named `MethodBodyExample`, and displays its local variable information and exception-handling clauses. The <xref:System.Reflection.MethodBase.GetMethodBody%2A?displayProperty=nameWithType> method is used to obtain a <xref:System.Reflection.MethodBody> object for the test method. The <xref:System.Reflection.MethodBody.ExceptionHandlingClauses%2A> property is used to obtain a list of <xref:System.Reflection.ExceptionHandlingClause> objects and display their properties.
|
590 | 578 |
|
591 |
| -> [!NOTE] |
592 |
| -> Not all computer languages can generate <xref:System.Reflection.ExceptionHandlingClauseOptions.Filter?displayProperty=nameWithType> clauses. The Visual Basic example shows a filter clause, using a Visual Basic `When` expression, which is omitted from the examples for other languages. |
593 | 579 |
|
594 | 580 | This code is part of a larger example located in the <xref:System.Reflection.MethodBody> class topic.
|
595 | 581 |
|
|
0 commit comments