Skip to content

Marshalled arrays should include SizeParamIndex and direction #372

@AArnott

Description

@AArnott

For #269 we fixed a bug by emitting [MarshalAs(UnmanagedType.LPArray)] on parameters that carry arrays of COM objects.

We might further improve perf and function by adding the [Out] or [In] attributes from the metadata to these same parameters so the interop marshaler can skip some work.
We might also be useful to set the SizeParamIndex argument when the metadata includes it.

@skippy10110 mentioned in #333 (comment)_ a code snippet that included these elements that seem to still be missing.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions