Runtime: Should AllowReversePInvokeCallsAttribute be marked Obsolete?

Created on 8 Apr 2020  路  3Comments  路  Source: dotnet/runtime

Should AllowReversePInvokeCallsAttribute be marked Obsolete and point to NativeCallableAttribute? This appears to be a legacy attribute with no real application anymore.

/cc @jkotas @stephentoub

area-System.Runtime.InteropServices

Most helpful comment

This can be addressed by following the pattern in https://github.com/dotnet/runtime/pull/37536.

All 3 comments

This attribute is part of code access security (CAS) family of attributes. It should be on the same plan as the rest of them.

We should mark all CAS attributes as obsolete once we have the fine grained controls for obsoleting in place (https://github.com/dotnet/runtime/issues/31279#issuecomment-586545318).

I believe the fine grained obsoletion support is merged in and supported in Roslyn.

This can be addressed by following the pattern in https://github.com/dotnet/runtime/pull/37536.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

btecu picture btecu  路  3Comments

omajid picture omajid  路  3Comments

bencz picture bencz  路  3Comments

jamesqo picture jamesqo  路  3Comments

nalywa picture nalywa  路  3Comments