Oh - and in my case, one of these objects is a COM wrapper (marshalled) object.
Hi David,
I think you may try the method
Object.ReferenceEquals Method
Example
[C#, C++, JScript] The following code example uses ReferenceEquals to
determine if two objects are the same instance.
[C#]
using System;
class MyClass {
static void Main() {
object o = null;
object p = null;
object q = new Object();
Console.WriteLine(Object.ReferenceEquals(o, p));
p = q;
Console.WriteLine(Object.ReferenceEquals(p, q));
Console.WriteLine(Object.ReferenceEquals(o, p));
}
}
/*
This code produces the following output.
True
True
False
*/
Best regards,
Peter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
David Thielen - 14 Jun 2005 15:03 GMT
Perfect - thank you

Signature
thanks - dave
> Hi David,
>
[quoted text clipped - 38 lines]
> Get Secure! - www.microsoft.com/security
> This posting is provided "AS IS" with no warranties, and confers no rights.
"Peter Huang" [MSFT] - 15 Jun 2005 02:50 GMT
Hi
You are welcome!
Best regards,
Peter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.