示例#1
0
        private List<ConfigurationException>    _errors;                // errors

        // constructor used for Clone()
        FactoryRecord(
                string              configKey,
                string              group,
                string              name,
                object              factory,
                string              factoryTypeName,
                SimpleBitVector32   flags,
                ConfigurationAllowDefinition    allowDefinition,
                ConfigurationAllowExeDefinition allowExeDefinition,
                OverrideModeSetting             overrideModeDefault,
                string              filename,
                int                 lineNumber,
                ICollection<ConfigurationException> errors) {

            _configKey              = configKey;
            _group                  = group;
            _name                   = name;
            _factory                = factory;
            _factoryTypeName        = factoryTypeName;
            _flags                  = flags;
            _allowDefinition        = allowDefinition;
            _allowExeDefinition     = allowExeDefinition;
            _overrideModeDefault    = overrideModeDefault;
            _filename               = filename;
            _lineNumber             = lineNumber;

            AddErrors(errors);
        }
 internal SectionInformation(ConfigurationSection associatedConfigurationSection)
 {
     this._configurationSection = associatedConfigurationSection;
     this._allowDefinition = ConfigurationAllowDefinition.Everywhere;
     this._allowExeDefinition = ConfigurationAllowExeDefinition.MachineToApplication;
     this._overrideModeDefault = System.Configuration.OverrideModeSetting.SectionDefault;
     this._overrideMode = System.Configuration.OverrideModeSetting.LocationDefault;
     this._flags[8] = true;
     this._flags[0x10] = true;
     this._flags[0x20] = true;
     this._flags[0x100] = true;
     this._flags[0x1000] = false;
     this._modifiedFlags = new SimpleBitVector32();
 }
示例#3
0
 internal SectionInformation(ConfigurationSection associatedConfigurationSection)
 {
     this._configurationSection = associatedConfigurationSection;
     this._allowDefinition      = ConfigurationAllowDefinition.Everywhere;
     this._allowExeDefinition   = ConfigurationAllowExeDefinition.MachineToApplication;
     this._overrideModeDefault  = System.Configuration.OverrideModeSetting.SectionDefault;
     this._overrideMode         = System.Configuration.OverrideModeSetting.LocationDefault;
     this._flags[8]             = true;
     this._flags[0x10]          = true;
     this._flags[0x20]          = true;
     this._flags[0x100]         = true;
     this._flags[0x1000]        = false;
     this._modifiedFlags        = new SimpleBitVector32();
 }
        //
        // Constructor
        //
        internal SectionInformation(ConfigurationSection associatedConfigurationSection) {
            _configKey = String.Empty;
            _group = String.Empty;
            _name = String.Empty;

            _configurationSection     = associatedConfigurationSection;
            _allowDefinition          = ConfigurationAllowDefinition.Everywhere;
            _allowExeDefinition       = ConfigurationAllowExeDefinition.MachineToApplication;

            _flags[ Flag_AllowLocation            ] = true;
            _flags[ Flag_RestartOnExternalChanges ] = true;
            _flags[ Flag_RequirePermission        ] = true;
            _flags[ Flag_AllowOverride            ] = true;
            _flags[ Flag_InheritInChildApps       ] = true;
            _flags[ Flag_ForceSave                ] = false;

            _modifiedFlags = new SimpleBitVector32();
        }
示例#5
0
        internal SectionInformation(ConfigurationSection associatedConfigurationSection)
        {
            ConfigKey = string.Empty;
            Name      = string.Empty;

            _configurationSection = associatedConfigurationSection;
            _allowDefinition      = ConfigurationAllowDefinition.Everywhere;
            _allowExeDefinition   = ConfigurationAllowExeDefinition.MachineToApplication;
            _overrideModeDefault  = OverrideModeSetting.s_sectionDefault;
            _overrideMode         = OverrideModeSetting.s_locationDefault;

            _flags[FlagAllowLocation]            = true;
            _flags[FlagRestartOnExternalChanges] = true;
            _flags[FlagRequirePermission]        = true;
            _flags[FlagInheritInChildApps]       = true;
            _flags[FlagForceSave] = false;

            _modifiedFlags = new SimpleBitVector32();
        }
示例#6
0
        internal SectionInformation(ConfigurationSection associatedConfigurationSection)
        {
            ConfigKey = string.Empty;
            Name = string.Empty;

            _configurationSection = associatedConfigurationSection;
            _allowDefinition = ConfigurationAllowDefinition.Everywhere;
            _allowExeDefinition = ConfigurationAllowExeDefinition.MachineToApplication;
            _overrideModeDefault = OverrideModeSetting.s_sectionDefault;
            _overrideMode = OverrideModeSetting.s_locationDefault;

            _flags[FlagAllowLocation] = true;
            _flags[FlagRestartOnExternalChanges] = true;
            _flags[FlagRequirePermission] = true;
            _flags[FlagInheritInChildApps] = true;
            _flags[FlagForceSave] = false;

            _modifiedFlags = new SimpleBitVector32();
        }
        //
        // Constructor
        //
        internal SectionInformation(ConfigurationSection associatedConfigurationSection)
        {
            _configKey = String.Empty;
            _group     = String.Empty;
            _name      = String.Empty;

            _configurationSection = associatedConfigurationSection;
            _allowDefinition      = ConfigurationAllowDefinition.Everywhere;
            _allowExeDefinition   = ConfigurationAllowExeDefinition.MachineToApplication;

            _flags[Flag_AllowLocation]            = true;
            _flags[Flag_RestartOnExternalChanges] = true;
            _flags[Flag_RequirePermission]        = true;
            _flags[Flag_AllowOverride]            = true;
            _flags[Flag_InheritInChildApps]       = true;
            _flags[Flag_ForceSave] = false;

            _modifiedFlags = new SimpleBitVector32();
        }
 internal void ResetModifiedFlags()
 {
     this._modifiedFlags = new SimpleBitVector32();
 }
示例#9
0
 internal void ResetModifiedFlags()
 {
     _modifiedFlags = new SimpleBitVector32();
 }
 /*
  * COPY_FLAG copies the value of flags from a source field
  * into a destination field.
  *
  * In the macro:
  * + "&flag" limits the outer xor operation to just the flag we're interested in.
  * + These are the results of the two xor operations:
  *
  * fieldDst    fieldSrc    inner xor   outer xor
  * 0           0           0           0
  * 0           1           1           1
  * 1           0           1           0
  * 1           1           0           1
  */
 internal void Copy(SimpleBitVector32 src, int bit)
 {
     data ^= (data ^ src.data) & bit;
 }
示例#11
0
 internal void ResetModifiedFlags()
 {
     _modifiedFlags = default;
 }
 /*
  * COPY_FLAG copies the value of flags from a source field
  * into a destination field.
  *
  * In the macro:
  * + "&flag" limits the outer xor operation to just the flag we're interested in.
  * + These are the results of the two xor operations:
  *
  * fieldDst    fieldSrc    inner xor   outer xor
  * 0           0           0           0
  * 0           1           1           1
  * 1           0           1           0
  * 1           1           0           1
  */
 internal void Copy(SimpleBitVector32 src, int bit) {
     data ^= (data ^ src.data) & bit;
 }