You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by jg...@apache.org on 2009/04/08 06:11:59 UTC

svn commit: r762922 - /activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util/Convert.cs

Author: jgomes
Date: Tue Apr  7 19:37:35 2009
New Revision: 762922

URL: http://svn.apache.org/viewvc?rev=762922&view=rev
Log:
Fix for Compact Framework.
Fixes [AMQNET-156]. (See https://issues.apache.org/activemq/browse/AMQNET-156)

Modified:
    activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util/Convert.cs

Modified: activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util/Convert.cs
URL: http://svn.apache.org/viewvc/activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util/Convert.cs?rev=762922&r1=762921&r2=762922&view=diff
==============================================================================
--- activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util/Convert.cs (original)
+++ activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util/Convert.cs Tue Apr  7 19:37:35 2009
@@ -106,6 +106,9 @@
 		{
 			Type objType = null;
 
+#if NETCF
+			objType = Assembly.GetCallingAssembly().GetType(typeName, false);
+#else
 			foreach(Assembly assembly in AppDomain.CurrentDomain.GetAssemblies())
 			{
 				objType = assembly.GetType(typeName, false, true);
@@ -113,7 +116,8 @@
 				{
 					break;
 				}
-			}
+			}
+#endif
 
 			return objType;
 		}