blob: b55c5ea9a4c2b5bf5442210d3a88c30b26c1568b (
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
|
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 ();
}
}
}
|