Xamarin Public Jenkins (auto-signing) ae1884c1bc Imported Upstream version 6.10.0.95
Former-commit-id: 18432a6ff57f597da5968d1a3011ed3c703abdad
2020-03-14 08:42:10 +00:00

25 lines
726 B
C#

using System;
using System.Reflection;
using System.Runtime.ExceptionServices;
namespace Internal.Runtime.Augments {
partial class RuntimeAugments {
private static ReflectionExecutionDomainCallbacks s_reflectionExecutionDomainCallbacks = new ReflectionExecutionDomainCallbacks ();
public static void ReportUnhandledException (Exception exception)
{
var edi = ExceptionDispatchInfo.Capture (exception);
edi.Throw ();
}
internal static ReflectionExecutionDomainCallbacks Callbacks => s_reflectionExecutionDomainCallbacks;
}
partial class ReflectionExecutionDomainCallbacks {
internal Exception CreateMissingMetadataException (Type attributeType)
{
return new MissingMetadataException ();
}
}
}