diff --git a/OmniXaml/TypeLocation/TypeDirectory.cs b/OmniXaml/TypeLocation/TypeDirectory.cs index 6ddc423..2f3b252 100644 --- a/OmniXaml/TypeLocation/TypeDirectory.cs +++ b/OmniXaml/TypeLocation/TypeDirectory.cs @@ -6,7 +6,7 @@ public class TypeDirectory : ITypeDirectory { - private const string ClrNamespace = "using:"; + private static readonly List namespaceDeclarations = new List { "using:", "clr-namespace:" }; private readonly ISet xamlNamespaces; public TypeDirectory(IEnumerable xamlNamespaces) @@ -43,7 +43,7 @@ private Namespace GetNamespace(string name) private static bool IsClrNamespace(string ns) { - return ns.StartsWith(ClrNamespace); + return namespaceDeclarations.Exists(decl => ns.StartsWith(decl)); } } -} \ No newline at end of file +}