Skip to content

Instantly share code, notes, and snippets.

@kumpera
Created May 23, 2014 19:21
Show Gist options
  • Save kumpera/d9c8c63f51b48f91ba3d to your computer and use it in GitHub Desktop.
Save kumpera/d9c8c63f51b48f91ba3d to your computer and use it in GitHub Desktop.
public sealed class My3Attribute : Attribute
{
public My3Attribute (object[] arr) {
}
}
[My3 (new Type[] { typeof (DisappearingType) })]
public static int test_0_array_of_missing_type_alt () {
try {
MethodBase.GetCurrentMethod ().GetCustomAttributes (false);
return 1;
} catch (TypeLoadException) {
return 0;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment