internal FactoryRecord CloneSectionGroup(string factoryTypeName, string filename, int lineNumber) { if (_factoryTypeName != null) { factoryTypeName = _factoryTypeName; } return new FactoryRecord( _configKey, _group, _name, _factory, factoryTypeName, _flags, _allowDefinition, _allowExeDefinition, filename, lineNumber, Errors); }