Skip to content

Commit c87be30

Browse files
committed
Fix compilation error on AppVeyor
1 parent c95f131 commit c87be30

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

XmlSchemaClassGenerator/CodeUtilities.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,6 @@ public static KeyValuePair<NamespaceKey, string> ParseNamespace(string nsArg, st
413413
("System.Xml", c => c.CompactTypeNames),
414414
("System.Xml.Schema", c => c.CompactTypeNames),
415415
("System.Xml.Serialization", c => c.CompactTypeNames)
416-
,
417416
];
418417

419418
public static bool IsUsingNamespace(string namespaceName, GeneratorConfiguration conf)
@@ -486,7 +485,7 @@ public static string GenerateNamespace(string xmlns, string namespacePrefix = nu
486485

487486
if (segments.Count > 0)
488487
{
489-
var splitSegments = segments[0].Split('.').Reverse().Where(s => s != "www").ToList();
488+
var splitSegments = ((IEnumerable<string>)segments[0].Split('.')).Reverse().Where(s => s != "www").ToList();
490489
if (segments.Count > 1)
491490
splitSegments.AddRange(segments.Skip(1));
492491
segments = splitSegments.SelectMany(s => s.Split('-', '.', '_')).ToList();

0 commit comments

Comments
 (0)