We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1b705bd + 0700ae6 commit 561d75cCopy full SHA for 561d75c
XmlSchemaClassGenerator/CodeUtilities.cs
@@ -365,6 +365,11 @@ internal static string NormalizeNewlines(string text)
365
public static KeyValuePair<NamespaceKey, string> ParseNamespace(string nsArg, string namespacePrefix)
366
{
367
var parts = nsArg.Split(new[] { '=' }, 2);
368
+ if (parts.Length != 2)
369
+ {
370
+ throw new ArgumentException("XML and C# namespaces should be separated by '='.");
371
+ }
372
+
373
var xmlNs = parts[0];
374
var netNs = parts[1];
375
var parts2 = xmlNs.Split(new[] { '|' }, 2);
0 commit comments