예제 #1
0
        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);
        }
예제 #2
0
 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;
 }