示例#1
0
        public T ToObject <T>() where T : class, new()
        {
            var result = new T();

            StepConvert.PopulateObject(result, AttributeValues);
            return(result);
        }
示例#2
0
        private void ParseFileSchema()
        {
            var fileSchema = new StepFileSchema();

            Expect(StepTokenKind.StandardKeyword, "FILE_SCHEMA");

            StepConvert.PopulateObject(fileSchema, ParseParameterList());

            Expect(StepTokenKind.Semicolon);

            ProcessFileSchema(fileSchema);
        }
示例#3
0
        private void ParseFileDescription()
        {
            var fileDescription = new StepFileDescription();

            Expect(StepTokenKind.StandardKeyword, "FILE_DESCRIPTION");

            StepConvert.PopulateObject(fileDescription, ParseParameterList());

            Expect(StepTokenKind.Semicolon);

            ProcessFileDescription(fileDescription);
        }
示例#4
0
        private void ParseFileName()
        {
            var fileName = new StepFileName();

            Expect(StepTokenKind.StandardKeyword, "FILE_NAME");

            StepConvert.PopulateObject(fileName, ParseParameterList());

            Expect(StepTokenKind.Semicolon);

            ProcessFileName(fileName);
        }