[Mono-dev] == operator comparing COM interops

Tom Hindle tom_hindle at sil.org
Wed Jul 8 19:27:31 EDT 2009


Hi,

I submitted bug https://bugzilla.novell.com/show_bug.cgi?id=520437.

Basically doing:
if (interop1 == interop2)
{

}
where interop1 and interop2 are the same COM object (IUnknown intptr is
the same ptr) returns false on mono and true in .NET.

The only current way I can think of fixing this is by adding '==
operator' into Object and checking for ComImport attribute and then
checking to see if the objects are the same COM object.

Can any one give me any better ideas?

Thanks
Tom




More information about the Mono-devel-list mailing list