RUC on type silences warnings for code in members of the type, including generics warnings for methods.
But it doesn't silence warnings about generics on the type itself:
class RequireAll<[DAM(DAMT.All)] T> {}
[RUC("C<T>")]
class C<T> : RequireAll<T> {} // IL2091 'T' generic argument does not satisfy 'DynamicallyAccessedMemberTypes.All'
I believe RUC on type should silence this warning. I can't think of a way to do something unsafe with typeof(C<>) that wouldn't cause warnings elsewhere.
RUC on type silences warnings for code in members of the type, including generics warnings for methods.
But it doesn't silence warnings about generics on the type itself:
I believe RUC on type should silence this warning. I can't think of a way to do something unsafe with
typeof(C<>)that wouldn't cause warnings elsewhere.