diff options
Diffstat (limited to 'src/Interface.cs')
| -rw-r--r-- | src/Interface.cs | 7 |
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; |