115 references to Debug
System.Configuration (115)
parent\misc\ConfigPathUtility.cs (5)
73Debug.Assert(String.IsNullOrEmpty(parentConfigPath) || IsValid(parentConfigPath), "String.IsNullOrEmpty(parentConfigPath) || IsValid(parentConfigPath)"); 74Debug.Assert(String.IsNullOrEmpty(childConfigPath) || IsValid(childConfigPath), "String.IsNullOrEmpty(childConfigPath) || IsValid(childConfigPath)"); 88Debug.Assert(IsValid(configPath), "IsValid(configPath)"); 99Debug.Assert(String.IsNullOrEmpty(configPath) || IsValid(configPath), "String.IsNullOrEmpty(configPath) || IsValid(configPath)"); 110Debug.Assert(index != configPath.Length - 1);
System\Configuration\BaseConfigurationRecord.cs (30)
496Debug.Assert(inputsPerConfigKey.Count > 0, "We won't get here unless we have inputs."); 600Debug.Assert(!_parent.IsInitDelayed, "!_parent.IsInitDelayed"); 709Debug.Assert(!sectionRecord.HasIndirectLocationInputs, 913Debug.Assert(!sectionRecord.HasErrors, "!sectionRecord.HasErrors"); 1114Debug.Assert(factoryRecord != null, "factoryRecord != null"); 1129Debug.Assert(factoryRecord != null, "factoryRecord != null"); 1134Debug.Assert(!checkPermission || factoryRecord != null, "!checkPermission || factoryRecord != null"); 1195Debug.Assert(success || getLkg, "success || getLkg"); 1198Debug.Assert(getLkg == true, "getLkg == true"); 1226Debug.Assert(!requestIsHere, "!requestIsHere"); 1280Debug.Assert(getLkg == true, "getLkg == true"); 1532Debug.Assert(!factoryRecord.HasErrors, "!factoryRecord.HasErrors"); 1535Debug.Assert(sectionRecord.HasInput, "sectionRecord.HasInput"); 1545Debug.Assert(!(IsLocationConfig && getLkg), 1556Debug.Assert(!sectionRecord.HasErrors, "!sectionRecord.HasErrors"); 1597Debug.Assert(IsLocationConfig, "indirectLocationInputs is non-null only in location config record"); 1646Debug.Assert(locationInputs != null || indirectLocationInputs != null, 1676Debug.Assert(getLkg == true, "getLkg == true"); 2086Debug.Assert(_protectedConfig != null, "<configProtectedData> section should always be available because it's a built-in section"); 2236Debug.Assert(!rootFactoryRecord.HasErrors, "!rootFactoryRecord.HasErrors"); 2742Debug.Assert(UrlPath.IsSubpath(_parent.ConfigPath, input.SectionXmlInfo.TargetConfigPath)); 2818Debug.Assert(FindFactoryRecord(configKey, true) != null); 2839Debug.Assert(mode != OverrideMode.Inherit); // Remember that the default is never Inherit 2855Debug.Assert(mode != OverrideMode.Inherit); 3182Debug.Assert(!positionedAtNextElement, "!positionedAtNextElement"); 4396Debug.Assert(factoryRecord.HasErrors, "If the user has mistakenly declared an implicit section, we should have recorded an error."); 4423Debug.Assert(factoryRecord.HasErrors, "If the user has mistakenly declared an implicit section, we should have recorded an error."); 4535Debug.Assert(x.SectionXmlInfo.ConfigKey == y.SectionXmlInfo.ConfigKey); 4559Debug.Assert(StringUtil.EqualsIgnoreCase(yTargetConfigPath, xTargetConfigPath)); 4574Debug.Assert(false,
System\Configuration\ClientConfigurationHost.cs (1)
543Debug.Fail("unrecognized configPath " + configPath);
System\Configuration\ConfigurationElement.cs (12)
726Debug.Assert(Properties.Contains(propertyName), "Properties.Contains(propertyName)"); 736Debug.Assert(instance is ConfigurationElement, "instance is ConfigurationElement"); 811Debug.Assert(type != null, "type != null"); 840Debug.Assert(propertyInformation != null, "propertyInformation != null"); 864Debug.Assert((type != null) && ( validator != null)); 865Debug.Assert(typeof(ConfigurationElement).IsAssignableFrom(type)); 877Debug.Assert( !s_perTypeValidators.ContainsKey(type)); 889Debug.Assert(root != null); 903Debug.Assert(elem != null); 1691Debug.Assert(prop != null, "prop != null"); 1692Debug.Assert(reader != null, "reader != null"); 1721Debug.Fail("Unknown exception type thrown");
System\Configuration\ConfigurationProperty.cs (2)
80Debug.Assert(info != null, "info != null"); 152Debug.Assert(attribProperty != null, "attribProperty != null");
System\Configuration\ConfigurationValidatorAttribute.cs (2)
56Debug.Fail("Declaring type must not be null."); 65Debug.Fail("Subsequent calls cannot change the declaring type of the attribute.");
System\Configuration\ConfigXmlReader.cs (1)
48Debug.Assert(!_lineNumberIsConstant || _lineOffset > 0,
System\Configuration\ContextInformation.cs (1)
28Debug.Assert(configRecord != null, "configRecord != null");
System\Configuration\ErrorsHelper.cs (2)
23Debug.Assert(e != null, "e != null"); 61Debug.Assert(errors.Count != 0, "errors.Count != 0");
System\Configuration\FactoryRecord.cs (1)
219Debug.Assert(_factory != null, "_factory != null");
System\Configuration\GenericEnumConverter.cs (1)
33Debug.Assert(typeof(System.Enum).IsAssignableFrom(value.GetType()), "typeof(System.Enum).IsAssignableFrom(value.GetType())");
System\Configuration\InfiniteIntConverter.cs (1)
35Debug.Assert(data is string, "data is string");
System\Configuration\InfiniteTimeSpanConverter.cs (1)
36Debug.Assert(data is string, "data is string");
System\Configuration\Internal\InternalConfigRoot.cs (5)
82Debug.Assert(!_hierarchyLock.IsReaderLockHeld, "!_hierarchyLock.IsReaderLockHeld"); 87Debug.Assert(!_hierarchyLock.IsWriterLockHeld, "!_hierarchyLock.IsWriterLockHeld"); 96Debug.Assert(!_hierarchyLock.IsWriterLockHeld, "!_hierarchyLock.IsWriterLockHeld"); 119Debug.Assert(!_hierarchyLock.IsReaderLockHeld, "!_hierarchyLock.IsReaderLockHeld"); 244Debug.Trace("ConfigurationCreate", "Creating config record for " + currentConfigPath);
System\Configuration\MgmtConfigurationRecord.cs (25)
432Debug.Assert(input.HasResult, "input.HasResult"); 436Debug.Assert(IsLocationConfig, "Indirect location inputs exist only in location config record"); 438Debug.Assert(input != null); 439Debug.Assert(input.HasResult, "input.HasResult"); 462Debug.Assert(!current.IsRootConfig, "An immediate parent result should have been found"); 1150Debug.Assert(filename.Length > 0, "The caller should make sure that filename is not empty"); 1569Debug.Assert(!factoryRecord.IsUndeclared, "!factoryRecord.IsUndeclared"); 1570Debug.Assert(!IsImplicitSection(factoryRecord.ConfigKey), "We should never write out an implicit section"); 1594Debug.Assert(!IsImplicitSection(sectionRecord.ConfigKey), "We should never write out an implicit section"); 1595Debug.Assert(!factoryRecord.IsUndeclared, "!factoryRecord.IsUndeclared"); 1954Debug.Assert(sectionRecord.HasFileInput || sectionRecord.HasLocationInputs, "sectionRecord.HasFileInput || sectionRecord.HasLocationInputs"); 1973Debug.Assert(sectionRecord.HasFileInput || sectionRecord.HasLocationInputs, "sectionRecord.HasFileInput || sectionRecord.HasLocationInputs"); 2126Debug.Assert(!IsImplicitSection(configKey), "We should never write out an implicit section"); 2212Debug.Assert(IsLocationConfig, "IsLocationConfig"); 2329Debug.Assert(reader.NodeType == XmlNodeType.Element && reader.Name == KEYWORD_CONFIGURATION, 2384Debug.Assert(reader.NodeType == XmlNodeType.EndElement && reader.Name == KEYWORD_CONFIGSECTIONS, 2540Debug.Assert(!IsImplicitSection(configKey), "We should never write out an implicit section"); 2596Debug.Assert(!IsImplicitSection(configKey), "We should never write out an implicit section"); 2674Debug.Assert(groupUpdate.UpdatedXml == null, "groupUpdate.UpdatedXml == null"); 2675Debug.Assert(!declarationUpdatesChild.HasUnretrievedSections(), 2761Debug.Assert(locationPathApplies, "locationPathApplies"); 2828Debug.Assert(LocationSubPath == null); 2847Debug.Assert(allowOverrideAttribute == null, "allowOverride and overrideMode both detected in a <location> tag"); 3081Debug.Assert(update.SectionRecord.HasFileInput, "update.SectionRecord.HasFileInput"); 3123Debug.Assert(hasFile, "hasFile");
System\Configuration\OverrideMode.cs (5)
171Debug.Assert((x._mode & ApiDefinedAny) != 0); 244Debug.Assert(useLegacy || (_mode & ApiDefinedNewMode) != 0); 253Debug.Assert(useLegacy || (_mode & XmlDefinedNewMode) != 0); 289Debug.Assert(false, "Missing xml keyword for OverrideMode enum value"); 338Debug.Assert(false, "Unrecognized OverrideMode");
System\Configuration\SectionInformation.cs (1)
435Debug.Assert(false,"Unexpected value for OverrideMode");
System\Configuration\SectionRecord.cs (1)
186Debug.Assert(sectionInput != null);
System\Configuration\SectionUpdates.cs (1)
52Debug.Assert(String.IsNullOrEmpty(_name), "FindSectionUpdates assumes search is from root record");
System\Configuration\TimeSpanMinutesConverter.cs (1)
32Debug.Assert(data is string, "data is string");
System\Configuration\TimeSpanMinutesOrInfiniteConverter.cs (1)
35Debug.Assert(data is string, "data is string");
System\Configuration\TimeSpanSecondsConverter.cs (1)
32Debug.Assert(data is string, "data is string");
System\Configuration\TimeSpanSecondsOrInfiniteConverter.cs (1)
35Debug.Assert(data is string, "data is string");
System\Configuration\TypeUtil.cs (1)
189Debug.Assert(owner != null);
System\Configuration\updateconfighost.cs (1)
38Debug.Assert(!String.IsNullOrEmpty(oldStreamname));
System\Configuration\ValidatorUtils.cs (1)
91Debug.Assert(resolution > 0, "resolution > 0");
System\Configuration\WhiteSpaceTrimStringConverter.cs (1)
34Debug.Assert(data is string, "data is string");
System\Configuration\XmlUtil.cs (7)
159Debug.Assert(trueLinePosition > 0, "trueLinePosition > 0"); 388Debug.Assert(_reader.NodeType == XmlNodeType.Element, "_reader.NodeType == XmlNodeType.Element"); 482Debug.Assert(_reader.NodeType == XmlNodeType.Element, "_reader.NodeType == XmlNodeType.Element"); 543Debug.Assert(_reader.NodeType== XmlNodeType.Element, "_reader.NodeType== XmlNodeType.Element"); 759Debug.Assert(utilWriter.TrackPosition, "utilWriter.TrackPosition"); 863Debug.Assert(_reader.NodeType == XmlNodeType.Element, 898Debug.Assert(_reader.NodeType == XmlNodeType.Element, "_reader.NodeType == NodeType.Element");
System\Configuration\XmlUtilWriter.cs (2)
353Debug.Assert(_trackPosition, "_trackPosition"); 415Debug.Assert(_isLastLineBlank, "_isLastLineBlank");