コード例 #1
0
        public static FunctionMetadataRegistry CreateRegistry()
        {
            StringReader br = new StringReader(Resource1.functionMetadata);

            FunctionDataBuilder fdb = new FunctionDataBuilder(400);

            try
            {
                while (true)
                {
                    String line = br.ReadLine();
                    if (line == null)
                    {
                        break;
                    }
                    if (line.Length < 1 || line[0] == '#')
                    {
                        continue;
                    }
                    String TrimLine = line.Trim();
                    if (TrimLine.Length < 1)
                    {
                        continue;
                    }
                    ProcessLine(fdb, line);
                }
                br.Close();
            }
            catch (IOException)
            {
                throw;
            }

            return(fdb.Build());
        }
コード例 #2
0
        public static FunctionMetadataRegistry CreateRegistry()
        {
            StringReader br = new StringReader(Resource1.functionMetadata);

            FunctionDataBuilder fdb = new FunctionDataBuilder(400);

            try
            {
                while (true)
                {
                    String line = br.ReadLine();
                    if (line == null)
                    {
                        break;
                    }
                    if (line.Length < 1 || line[0] == '#')
                    {
                        continue;
                    }
                    String TrimLine = line.Trim();
                    if (TrimLine.Length < 1)
                    {
                        continue;
                    }
                    ProcessLine(fdb, line);
                }
                br.Close();
            }
            catch (IOException)
            {
                throw;
            }

            return fdb.Build();
        }