You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ibatis.apache.org by rg...@apache.org on 2006/03/30 04:51:32 UTC
svn commit: r389971 -
/ibatis/trunk/cs/mapper/IBatisNet.Common/Utilities/Objects/ObjectProbe.cs
Author: rgrabowski
Date: Wed Mar 29 18:51:30 2006
New Revision: 389971
URL: http://svn.apache.org/viewcvs?rev=389971&view=rev
Log:
Applied patch to re-fix IBATISNET-124: replaced IsSubClassOf with IsAssignableFrom becuase IsSubClass does not work with interfaces.
Modified:
ibatis/trunk/cs/mapper/IBatisNet.Common/Utilities/Objects/ObjectProbe.cs
Modified: ibatis/trunk/cs/mapper/IBatisNet.Common/Utilities/Objects/ObjectProbe.cs
URL: http://svn.apache.org/viewcvs/ibatis/trunk/cs/mapper/IBatisNet.Common/Utilities/Objects/ObjectProbe.cs?rev=389971&r1=389970&r2=389971&view=diff
==============================================================================
--- ibatis/trunk/cs/mapper/IBatisNet.Common/Utilities/Objects/ObjectProbe.cs (original)
+++ ibatis/trunk/cs/mapper/IBatisNet.Common/Utilities/Objects/ObjectProbe.cs Wed Mar 29 18:51:30 2006
@@ -652,19 +652,19 @@
{
return true;
}
- else if (type.IsSubclassOf(typeof(ICollection)))
+ else if (typeof(ICollection).IsAssignableFrom(type))
{
return true;
}
- else if (type.IsSubclassOf(typeof(IDictionary)))
+ else if (typeof(IDictionary).IsAssignableFrom(type))
{
return true;
}
- else if (type.IsSubclassOf(typeof(IList)))
+ else if (typeof(IList).IsAssignableFrom(type))
{
return true;
}
- else if (type.IsSubclassOf(typeof(IEnumerable)))
+ else if (typeof(IEnumerable).IsAssignableFrom(type))
{
return true;
}