// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Diagnostics;
namespace System.Reflection.Context.Delegation
{
internal class DelegatingExceptionHandlingClause : ExceptionHandlingClause
{
private readonly ExceptionHandlingClause _clause;
public DelegatingExceptionHandlingClause(ExceptionHandlingClause clause)
{
Debug.Assert(clause != null);
_clause = clause;
}
public override Type? CatchType
{
get { return _clause.CatchType; }
}
public override int FilterOffset
{
get { return _clause.FilterOffset; }
}
public override ExceptionHandlingClauseOptions Flags
{
get { return _clause.Flags; }
}
public override int HandlerLength
{
get { return _clause.HandlerLength; }
}
public override int HandlerOffset
{
get { return _clause.HandlerOffset; }
}
public override int TryLength
{
get { return _clause.TryLength; }
}
public override int TryOffset
{
get { return _clause.TryOffset; }
}
public override string ToString()
{
return _clause.ToString();
}
}
}
|