diff --git a/XmlSchemaClassGenerator/CodeUtilities.cs b/XmlSchemaClassGenerator/CodeUtilities.cs index 21ea8409..f56e7ac1 100644 --- a/XmlSchemaClassGenerator/CodeUtilities.cs +++ b/XmlSchemaClassGenerator/CodeUtilities.cs @@ -335,12 +335,7 @@ public static KeyValuePair ParseNamespace(string nsArg, st var parts = nsArg.Split(new[] { '=' }, 2); if (parts.Length == 1) - { - var ns = parts[0]; - if (!string.IsNullOrEmpty(namespacePrefix)) - ns = namespacePrefix + "." + ns; - return new KeyValuePair(new NamespaceKey(), ns); - } + parts = new[] { string.Empty, parts[0] }; if (parts.Length != 2) throw new ArgumentException("XML and C# namespaces should be separated by '='. You entered: " + nsArg);