Update of /cvsroot/nhibernate/nhibernate/src/NHibernate/Type
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25192/NHibernate/Type
Modified Files:
PersistentCollectionType.cs SetType.cs
Log Message:
Changed method to virtual because of the SetType's special handling...
Index: SetType.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/SetType.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** SetType.cs 10 Feb 2004 18:41:42 -0000 1.2
--- SetType.cs 24 May 2004 05:49:19 -0000 1.3
***************
*** 43,46 ****
--- 43,52 ----
}
+ public override ICollection GetElementsCollection(object collection)
+ {
+ return (ICollection)((IDictionary)collection).Keys;
+ }
+
+
}
Index: PersistentCollectionType.cs
===================================================================
RCS file: /cvsroot/nhibernate/nhibernate/src/NHibernate/Type/PersistentCollectionType.cs,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** PersistentCollectionType.cs 6 May 2004 13:14:03 -0000 1.10
--- PersistentCollectionType.cs 24 May 2004 05:49:19 -0000 1.11
***************
*** 93,98 ****
// return ( (java.util.Collection) collection ).iterator();
//}
! public ICollection GetElementsCollection(object collection) {
! return ( (ICollection )collection );
}
--- 93,103 ----
// return ( (java.util.Collection) collection ).iterator();
//}
! /// <summary>
! /// Returns a reference to the underlying ICollection
! /// </summary>
! /// <param name="collection">The object that holds the ICollection.</param>
! /// <returns>An ICollection.</returns>
! public virtual ICollection GetElementsCollection(object collection) {
! return ( (ICollection)collection );
}
|