2 // Test to check that in the 2.x profile, we add the RuntimeCompatibilityAttribute
3 // if none is specified. Bug 76364
6 using System.Reflection;
7 using System.Runtime.CompilerServices;
12 object [] attrs = typeof (X).Assembly.GetCustomAttributes (true);
14 foreach (object o in attrs){
15 if (o is RuntimeCompatibilityAttribute){
16 RuntimeCompatibilityAttribute a = (RuntimeCompatibilityAttribute) o;
18 if (a.WrapNonExceptionThrows)
23 // failed, did not find the attribute