Skip to content

Commit f8f24e6

Browse files
author
Davy Brion
committed
applying patch from James Lanng for NH-1751
SVN: trunk@4192
1 parent 70ffa4f commit f8f24e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate/Transform/DistinctRootEntityResultTransformer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public object TransformTuple(object[] tuple, string[] aliases)
3939

4040
public IList TransformList(IList list)
4141
{
42-
IList result = new ArrayList();
42+
IList result = (IList)Activator.CreateInstance(list.GetType());
4343
ISet<Identity> distinct = new HashedSet<Identity>();
4444

4545
for (int i = 0; i < list.Count; i++)

0 commit comments

Comments
 (0)