System.Configuration.MgmtConfigurationRecord.CreateSectionGroupFactory C# (CSharp) Method

CreateSectionGroupFactory() private method

private CreateSectionGroupFactory ( FactoryRecord factoryRecord ) : ConstructorInfo
factoryRecord FactoryRecord
return System.Reflection.ConstructorInfo
        private ConstructorInfo CreateSectionGroupFactory(FactoryRecord factoryRecord) {
            Type type;

            if (String.IsNullOrEmpty(factoryRecord.FactoryTypeName)) {
                type = typeof(ConfigurationSectionGroup);
            }
            else {
                type = TypeUtil.GetTypeWithReflectionPermission(Host, factoryRecord.FactoryTypeName, true);
            }

            ConstructorInfo ctor = TypeUtil.GetConstructorWithReflectionPermission(type, typeof(ConfigurationSectionGroup), true);

            return ctor;
        }