Hi
Here is a sample for your reference.
[ClassInterface(ClassInterfaceType.AutoDual)]
public class TestClass
{
public void
MyMethod([MarshalAs(UnmanagedType.SafeArray,SafeArraySubType =VarEnum.VT_VARI
ANT)]ref System.Array param)
{
;
}
}
Also here is link about Default Marshaling for Arrays in .NET.
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconDefaultMarshalingForArrays.asp
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.