Created
May 23, 2014 19:21
-
-
Save kumpera/d9c8c63f51b48f91ba3d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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