Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 0366e5f

Browse files
committed
Merge pull request #80 from Aurimas86/patch-1
Type.GetType fails with typeName argument in silverlight
2 parents 84f853e + 40e1d3d commit 0366e5f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ServiceStack.Text/AssemblyUtils.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ public static class AssemblyUtils
2828
/// <returns></returns>
2929
public static Type FindType(string typeName)
3030
{
31+
#if !SILVERLIGHT
3132
var type = Type.GetType(typeName);
3233
if (type != null) return type;
33-
34+
#endif
3435
var typeDef = new AssemblyTypeDefinition(typeName);
3536
if (!String.IsNullOrEmpty(typeDef.AssemblyName))
3637
{

0 commit comments

Comments
 (0)