Skip to content

Commit f72c936

Browse files
author
Michael Ganss
committed
Fix #12
1 parent 99b82b3 commit f72c936

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

XmlSchemaClassGenerator/NamespaceProvider.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,14 @@ public string FindNamespace(NamespaceKey key, string defaultNamespace = null)
165165
foreach (var keyValue in keyValues)
166166
{
167167
string result;
168-
if (TryGetValue(keyValue, out result))
168+
if (InternalDictionary.TryGetValue(keyValue, out result))
169169
return result;
170170
}
171171

172+
string ns;
173+
if (TryGenerateNamespace(key, out ns))
174+
return ns;
175+
172176
return defaultNamespace;
173177
}
174178
}

0 commit comments

Comments
 (0)