blob: 15780f11cf2f0df959b17d77089a81fbda5e7789 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Globalization;
namespace System.Reflection
{
public class ExceptionHandlingClause
{
protected ExceptionHandlingClause() { }
public virtual ExceptionHandlingClauseOptions Flags => default;
public virtual int TryOffset => 0;
public virtual int TryLength => 0;
public virtual int HandlerOffset => 0;
public virtual int HandlerLength => 0;
public virtual int FilterOffset => throw new InvalidOperationException(SR.Arg_EHClauseNotFilter);
public virtual Type CatchType => null;
public override string ToString()
{
return string.Format(CultureInfo.CurrentUICulture,
"Flags={0}, TryOffset={1}, TryLength={2}, HandlerOffset={3}, HandlerLength={4}, CatchType={5}",
Flags, TryOffset, TryLength, HandlerOffset, HandlerLength, CatchType);
}
}
}
|