[Mono-list] Type.invokeMember

ville vi64pa@koti.soon.fi
Tue, 4 Feb 2003 21:31:46 +0200


Hi All!

Can somebody explain me why the following code throws MissingMethodExcept=
ion?=20
I tested it with .Net it worked fine. And Int32 implements CompareTo -met=
hod.

Type t =3D typeof (Int32);
t.InvokeMember ("CompareTo", BindingFlags.Default | BindingFlags.InvokeMe=
thod,=20
null, 16, new object [] {1});

Ville