Skip to content

Commit

Permalink
Fix #12
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ganss committed Dec 3, 2015
1 parent 99b82b3 commit f72c936
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion XmlSchemaClassGenerator/NamespaceProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,14 @@ public string FindNamespace(NamespaceKey key, string defaultNamespace = null)
foreach (var keyValue in keyValues)
{
string result;
if (TryGetValue(keyValue, out result))
if (InternalDictionary.TryGetValue(keyValue, out result))
return result;
}

string ns;
if (TryGenerateNamespace(key, out ns))
return ns;

return defaultNamespace;
}
}
Expand Down

0 comments on commit f72c936

Please sign in to comment.