Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / IgnoreSection.cs / 1305376 / IgnoreSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Xml; sealed public class IgnoreSection : ConfigurationSection { private static ConfigurationPropertyCollection s_properties; string _rawXml = string.Empty; bool _isModified; private static ConfigurationPropertyCollection EnsureStaticPropertyBag() { if (s_properties == null) { ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); s_properties = properties; } return s_properties; } public IgnoreSection() { EnsureStaticPropertyBag(); } protected internal override ConfigurationPropertyCollection Properties { get { return EnsureStaticPropertyBag(); } } protected internal override bool IsModified() { return _isModified; } protected internal override void ResetModified() { _isModified = false; } protected internal override void Reset(ConfigurationElement parentSection) { _rawXml = string.Empty; _isModified = false; } protected internal override void DeserializeSection(XmlReader xmlReader) { if (!xmlReader.Read() || xmlReader.NodeType != XmlNodeType.Element) { throw new ConfigurationErrorsException(SR.GetString(SR.Config_base_expected_to_find_element), xmlReader); } _rawXml = xmlReader.ReadOuterXml(); _isModified = true; } protected internal override string SerializeSection(ConfigurationElement parentSection, string name, ConfigurationSaveMode saveMode) { return _rawXml; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Xml; sealed public class IgnoreSection : ConfigurationSection { private static ConfigurationPropertyCollection s_properties; string _rawXml = string.Empty; bool _isModified; private static ConfigurationPropertyCollection EnsureStaticPropertyBag() { if (s_properties == null) { ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); s_properties = properties; } return s_properties; } public IgnoreSection() { EnsureStaticPropertyBag(); } protected internal override ConfigurationPropertyCollection Properties { get { return EnsureStaticPropertyBag(); } } protected internal override bool IsModified() { return _isModified; } protected internal override void ResetModified() { _isModified = false; } protected internal override void Reset(ConfigurationElement parentSection) { _rawXml = string.Empty; _isModified = false; } protected internal override void DeserializeSection(XmlReader xmlReader) { if (!xmlReader.Read() || xmlReader.NodeType != XmlNodeType.Element) { throw new ConfigurationErrorsException(SR.GetString(SR.Config_base_expected_to_find_element), xmlReader); } _rawXml = xmlReader.ReadOuterXml(); _isModified = true; } protected internal override string SerializeSection(ConfigurationElement parentSection, string name, ConfigurationSaveMode saveMode) { return _rawXml; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SQlBooleanStorage.cs
- HebrewCalendar.cs
- SqlFormatter.cs
- StandardCommands.cs
- XmlSchemaChoice.cs
- SingleAnimationBase.cs
- UInt32Converter.cs
- SafeNativeMethodsCLR.cs
- Axis.cs
- DefaultValueConverter.cs
- ActiveXContainer.cs
- BitmapEffectDrawingContent.cs
- WsatProxy.cs
- Mutex.cs
- Helpers.cs
- ServiceOperationListItemList.cs
- TransformationRules.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- EncryptedXml.cs
- ReadOnlyDataSource.cs
- WebConfigurationHostFileChange.cs
- MaskedTextBoxDesigner.cs
- TraceHelpers.cs
- QueryAccessibilityHelpEvent.cs
- XmlResolver.cs
- QueryUtil.cs
- SHA512Managed.cs
- CalendarDataBindingHandler.cs
- PanelDesigner.cs
- _Semaphore.cs
- XpsSerializationException.cs
- MetadataArtifactLoaderComposite.cs
- DesignSurfaceManager.cs
- RegexCapture.cs
- StringKeyFrameCollection.cs
- RunWorkerCompletedEventArgs.cs
- Helpers.cs
- Animatable.cs
- NominalTypeEliminator.cs
- TraceUtils.cs
- StrongBox.cs
- DataReaderContainer.cs
- XmlName.cs
- LineGeometry.cs
- OletxTransactionManager.cs
- DbProviderFactoriesConfigurationHandler.cs
- DataGridHeaderBorder.cs
- TypeRestriction.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- UIElement.cs
- WindowsTooltip.cs
- LayoutManager.cs
- DesignSurfaceEvent.cs
- StrokeRenderer.cs
- SiteMapNodeCollection.cs
- CustomError.cs
- StatusBarAutomationPeer.cs
- DocumentXmlWriter.cs
- StickyNoteAnnotations.cs
- WizardForm.cs
- AtlasWeb.Designer.cs
- Point3DCollection.cs
- FacetDescriptionElement.cs
- PeerCollaborationPermission.cs
- DebugView.cs
- ObsoleteAttribute.cs
- OleTxTransaction.cs
- XmlEventCache.cs
- QuotedStringWriteStateInfo.cs
- WebPartTransformerCollection.cs
- TableCell.cs
- DescendantBaseQuery.cs
- _TLSstream.cs
- EasingFunctionBase.cs
- DispatcherHooks.cs
- ByteStreamGeometryContext.cs
- GcSettings.cs
- TdsParameterSetter.cs
- SeparatorAutomationPeer.cs
- EntityContainer.cs
- ProxyWebPartManager.cs
- Thumb.cs
- WindowsTreeView.cs
- BamlRecordHelper.cs
- ConnectionStringsSection.cs
- BuildResultCache.cs
- ISessionStateStore.cs
- ChannelSinkStacks.cs
- TreeViewImageIndexConverter.cs
- SliderAutomationPeer.cs
- EDesignUtil.cs
- PtsCache.cs
- MembershipUser.cs
- ToolStripPanelRow.cs
- CellConstantDomain.cs
- Cursors.cs
- WindowsSysHeader.cs
- WebZone.cs
- CornerRadius.cs
- SpotLight.cs