You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Due to the caching for MarkEntireType, we aren't producing warnings for all callsites:
usingSystem;usingSystem.Diagnostics.CodeAnalysis;usingDAM=System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute;usingRUC=System.Diagnostics.CodeAnalysis.RequiresUnreferencedCodeAttribute;publicclassProgram{publicstaticvoidMain(){Test1();Test2();}staticvoidTest1()=>RequireAll(typeof(Foo));// warnsstaticvoidTest2()=>RequireAll(typeof(Foo));// no warningstaticvoidRequireAll([DAM(DynamicallyAccessedMemberTypes.All)]Typet){}}publicclassFoo{[RUC("RUC")]voidMethod(){}}
NestedTypes annotations will have similar problems.