Permalink
Browse files

Merge pull request #80 from Aurimas86/patch-1

Type.GetType fails with typeName argument in silverlight
  • Loading branch information...
2 parents 84f853e + 40e1d3d commit 0366e5fb92b07779e878263201731ae8628296fb @mythz mythz committed Feb 29, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/ServiceStack.Text/AssemblyUtils.cs
@@ -28,9 +28,10 @@ public static class AssemblyUtils
/// <returns></returns>
public static Type FindType(string typeName)
{
+#if !SILVERLIGHT
var type = Type.GetType(typeName);
if (type != null) return type;
-
+#endif
var typeDef = new AssemblyTypeDefinition(typeName);
if (!String.IsNullOrEmpty(typeDef.AssemblyName))
{

0 comments on commit 0366e5f

Please sign in to comment.