System.Configuration.FactoryRecord.IsEquivalentSectionFactory C# (CSharp) Метод

IsEquivalentSectionFactory() приватный Метод

private IsEquivalentSectionFactory ( IInternalConfigHost host, string typeName, bool allowLocation, ConfigurationAllowDefinition allowDefinition, ConfigurationAllowExeDefinition allowExeDefinition, bool restartOnExternalChanges, bool requirePermission ) : bool
host IInternalConfigHost
typeName string
allowLocation bool
allowDefinition ConfigurationAllowDefinition
allowExeDefinition ConfigurationAllowExeDefinition
restartOnExternalChanges bool
requirePermission bool
Результат bool
        internal bool IsEquivalentSectionFactory( 
            IInternalConfigHost             host, 
            string                          typeName, 
            bool                            allowLocation, 
            ConfigurationAllowDefinition    allowDefinition,
            ConfigurationAllowExeDefinition allowExeDefinition,
            bool                            restartOnExternalChanges,
            bool                            requirePermission) {
                          
            if (    allowLocation               != this.AllowLocation               || 
                    allowDefinition             != this.AllowDefinition             || 
                    allowExeDefinition          != this.AllowExeDefinition          ||
                    restartOnExternalChanges    != this.RestartOnExternalChanges    ||
                    requirePermission           != this.RequirePermission) {

                return false;
            }

            return IsEquivalentType(host, typeName);
        }