[Mobies-commit] [commit] r3682 - UDM/trunk/include
ksmyth at redhat1.isis.vanderbilt.edu
ksmyth at redhat1.isis.vanderbilt.edu
Mon Mar 28 11:23:26 CDT 2011
Author: ksmyth
Date: Mon Mar 28 11:23:26 2011
New Revision: 3682
Log:
Implement Equals and GetHashCode for Udm::Object
Modified:
UDM/trunk/include/UdmException.i
Modified: UDM/trunk/include/UdmException.i
==============================================================================
--- UDM/trunk/include/UdmException.i Fri Mar 25 16:46:52 2011 (r3681)
+++ UDM/trunk/include/UdmException.i Mon Mar 28 11:23:26 2011 (r3682)
@@ -152,6 +152,21 @@
%typemap(cscode) UDM_NAMESPACE::Object %{
public static readonly Object GlobalLock = new Object();
+ public override bool Equals(object that)
+ {
+ if (that is UdmObject)
+ {
+ return this.Equals((UdmObject)that);
+ }
+ else
+ {
+ return false;
+ }
+ }
+ public override int GetHashCode()
+ {
+ return uniqueId();
+ }
%}
// based on csharp.swg
More information about the Mobies-commit
mailing list