Author: kostat
Date: 2006-10-18 04:11:36 -0400 (Wed, 18 Oct 2006)
New Revision: 66781
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ObjectDataSourceView.cs
Log:
ObjectDataSourceView.cs: use Type.GetType for loading full qualified types
Modified: trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
===================================================================
--- trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-10-18 02:55:45 UTC (rev 66780)
+++ trunk/mcs/class/System.Web/System.Web.UI.WebControls/ChangeLog
2006-10-18 08:11:36 UTC (rev 66781)
@@ -1,3 +1,7 @@
+2006-10-18 Konstantin Triger <[EMAIL PROTECTED]>
+
+ * ObjectDataSourceView.cs: use Type.GetType for loading full qualified
types.
+
2006-10-17 Igor Zelmanovich <[EMAIL PROTECTED]>
* FormView.cs: fixed: CreateDataSourceSelectArguments method.
Modified:
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ObjectDataSourceView.cs
===================================================================
---
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ObjectDataSourceView.cs
2006-10-18 02:55:45 UTC (rev 66780)
+++
trunk/mcs/class/System.Web/System.Web.UI.WebControls/ObjectDataSourceView.cs
2006-10-18 08:11:36 UTC (rev 66781)
@@ -506,17 +506,10 @@
private Type LoadType(string typeName)
{
- Type type = null;
- Assembly [] assemblies =
AppDomain.CurrentDomain.GetAssemblies ();
+ Type type = Type.GetType (typeName);
+ if (type != null)
+ return type;
- foreach (Assembly ass in assemblies) {
- type = ass.GetType (typeName);
- if (type == null)
- continue;
-
- return type;
- }
-
if (!Directory.Exists (PrivateBinPath))
return null;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches