public T ToObject <T>() where T : class, new() { var result = new T(); StepConvert.PopulateObject(result, AttributeValues); return(result); }
private void ParseFileSchema() { var fileSchema = new StepFileSchema(); Expect(StepTokenKind.StandardKeyword, "FILE_SCHEMA"); StepConvert.PopulateObject(fileSchema, ParseParameterList()); Expect(StepTokenKind.Semicolon); ProcessFileSchema(fileSchema); }
private void ParseFileDescription() { var fileDescription = new StepFileDescription(); Expect(StepTokenKind.StandardKeyword, "FILE_DESCRIPTION"); StepConvert.PopulateObject(fileDescription, ParseParameterList()); Expect(StepTokenKind.Semicolon); ProcessFileDescription(fileDescription); }
private void ParseFileName() { var fileName = new StepFileName(); Expect(StepTokenKind.StandardKeyword, "FILE_NAME"); StepConvert.PopulateObject(fileName, ParseParameterList()); Expect(StepTokenKind.Semicolon); ProcessFileName(fileName); }