using System.Linq; using System.Runtime.CompilerServices; public class G { } namespace dynamic { public class C : G { public static int Main () { var da = typeof (C).GetCustomAttributes (typeof (System.Runtime.CompilerServices.DynamicAttribute), false) [0] as DynamicAttribute; if (!da.TransformFlags.SequenceEqual (new bool[] { false, true })) return 1; return 0; } } }