diff options
Diffstat (limited to 'src/System.Private.CoreLib/shared/System/Reflection/ExceptionHandlingClause.cs')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Reflection/ExceptionHandlingClause.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Reflection/ExceptionHandlingClause.cs b/src/System.Private.CoreLib/shared/System/Reflection/ExceptionHandlingClause.cs new file mode 100644 index 000000000..15780f11c --- /dev/null +++ b/src/System.Private.CoreLib/shared/System/Reflection/ExceptionHandlingClause.cs @@ -0,0 +1,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); + } + } +} + |