CsWinRT
CsWinRT copied to clipboard
Suppress useless IL2080 warnings in fallback paths
This PR suppresses a bunch of IL2080 warnings for MakeGenericCalls that we know are actually safe. The warnings come from the fact the ABI type arguments are passed to type parameters using the unmanaged constraint, which implies struct, which implies new(), which in turn implies [DynamicallyAccessedMemebrs(PublicParameterlessConstructor)]. Because we know that all our ABI types are just blittable and will never have a constructor, we can just safely suppress these warnings.
[!NOTE] I recommend reviewing this with whitespace hidden.