1
Vote

SigImp TranslateSnippet should translate SAFEARRAY into [MarshalAs(SafeArray)] Array

description

Try to translate the following into C#:
 
HRESULT SafeArrayAccessData(
SAFEARRAY * psa,
void HUGEP ** ppvData
);
 
SigImp TranslateSnippet gives a very complex output including a full definition of SAFEARRAY structure. It should use MarshalAs(UnmanagedType.SafeArray) Array instead.

comments