activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgo...@apache.org
Subject svn commit: r762922 - /activemq/activemq-dotnet/Apache.NMS/trunk/src/main/csharp/Util/Convert.cs
Date Wed, 08 Apr 2009 04:11:59 GMT
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;
 		}



Mime
View raw message