[cominterop] Default to [in] parameter direction when not specified explicitly.
authorNikolay Sivov <nsivov@codeweavers.com>
Mon, 16 Sep 2019 17:42:43 +0000 (20:42 +0300)
committerMarek Safar <marek.safar@gmail.com>
Tue, 17 Sep 2019 09:06:17 +0000 (11:06 +0200)
commitd8be73f9f169427c1f7c57285b572677ee53260b
tree4d8e3d1984bf939c503feb88e76071103acb51a0
parent121481c6859939f4bd7e7ebd6111ac836d020184
[cominterop] Default to [in] parameter direction when not specified explicitly.

Treat [In, Out], [In] and unspecified as input arguments. Important change from
current behavior is to allow parameter without directional attributes.

Use case example is _MethodInfo.Invoke() method called from native client.

Commit migrated from https://github.com/mono/mono/commit/08521a1c43780a711113ef42043f664f256e8978
src/mono/mono/metadata/cominterop.c
src/mono/mono/tests/cominterop.cs
src/mono/mono/tests/libtest.c