aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/Interface.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Interface.cs')
-rw-r--r--src/Interface.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Interface.cs b/src/Interface.cs
index 05548587..97ab1c9d 100644
--- a/src/Interface.cs
+++ b/src/Interface.cs
@@ -153,6 +153,13 @@ namespace Crow
}
Type t = Type.GetType ("Crow." + root);
+ if (t == null) {
+ Assembly a = Assembly.GetEntryAssembly ();
+ foreach (Type expT in a.GetExportedTypes ()) {
+ if (expT.Name == root)
+ t = expT;
+ }
+ }
stream.Seek (0, SeekOrigin.Begin);
return t;