diff --git a/cscz/ClassGenerator.cs b/cscz/ClassGenerator.cs index b1139c8..a0be79c 100644 --- a/cscz/ClassGenerator.cs +++ b/cscz/ClassGenerator.cs @@ -50,6 +50,7 @@ namespace cscz nextLine = lines.ReadLine(); if(nextLine == null) break; + if(nextLine.Length == 0) continue; // It's a using statement if(nextLine.StartsWith("u ")) @@ -57,6 +58,11 @@ namespace cscz string[] parts = Regex.Split(nextLine.Trim(), @"\s+"); UsingStatements.Add(parts[1]); } + else if(nextLine.StartsWith("#")) + { + // It's the class name + ClassName = UppercaseFirstLetter(nextLine.TrimStart(new char[] { '#' })).Trim(); + } else { Signatures.Add(nextLine.Trim());