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

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

            Expect(StepTokenKind.StandardKeyword, "FILE_SCHEMA");

            StepConvert.PopulateObject(fileSchema, ParseParameterList());

            Expect(StepTokenKind.Semicolon);

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

            Expect(StepTokenKind.StandardKeyword, "FILE_DESCRIPTION");

            StepConvert.PopulateObject(fileDescription, ParseParameterList());

            Expect(StepTokenKind.Semicolon);

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

            Expect(StepTokenKind.StandardKeyword, "FILE_NAME");

            StepConvert.PopulateObject(fileName, ParseParameterList());

            Expect(StepTokenKind.Semicolon);

            ProcessFileName(fileName);
        }