private StructureEntity ParseEntity(string name, string line, int lineNumber) { StructureEntity result = new StructureEntity(name); this.itemMap.Add(name.ToLower(), result); string[] propertyTokens = line.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries); foreach (string propertyToken in propertyTokens) { result.Properties.Add(this.ParseProperty(propertyToken, lineNumber)); } return(result); }
private StructureEntity ParseEntity(string name, string line, int lineNumber) { StructureEntity result = new StructureEntity(name); this.itemMap.Add(name.ToLower(), result); string[] propertyTokens = line.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries); foreach (string propertyToken in propertyTokens) { result.Properties.Add(this.ParseProperty(propertyToken, lineNumber)); } return result; }