IfcDoc.FormatTTL_Stream.LoadPropertyNamesFromCSV C# (CSharp) Method

LoadPropertyNamesFromCSV() private method

private LoadPropertyNamesFromCSV ( ) : void
return void
        private void LoadPropertyNamesFromCSV()
        {
            m_fullpropertynames = new Dictionary<string, ObjectProperty>();
            try
            {
                // old: read from file
            #if false
                //TODO: make this work for multiple schemas
                //TODO: get the schema from the internal code, instead of from an external CSV file
                string x = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "proplistIFC4_ADD1.csv");
                using (StreamReader readFile = new StreamReader(x))
                {
                    string line;
                    string[] row;

                    while ((line = readFile.ReadLine()) != null)
                    {
                        row = line.Split(',');
                        //string s = char.ToLower(row[1][0]) + row[1].Substring(1);
                        m_fullpropertynames.Add(row[1] + "_" + row[0], new ObjectProperty(row[0], row[1], row[2], row[3]));
                    }
                }
            #endif
            }
            catch (Exception e)
            {
                Console.Out.WriteLine("ERROR FormatTTL_Stream.cs: unable to read file: " + "proplistIFC4_ADD1.csv" + " - "+e.InnerException);
            }
        }