Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / DefaultSection.cs / 1305376 / DefaultSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Xml; public sealed class DefaultSection : 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 DefaultSection() { 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
- RelatedView.cs
- HttpRuntimeSection.cs
- WarningException.cs
- HttpRequestCacheValidator.cs
- RowParagraph.cs
- ObjectCloneHelper.cs
- PathStreamGeometryContext.cs
- _LocalDataStore.cs
- TraceSource.cs
- BuildDependencySet.cs
- ShapingWorkspace.cs
- HwndAppCommandInputProvider.cs
- AmbientLight.cs
- StatusBarPanel.cs
- TemplateField.cs
- SiteMapPath.cs
- ZoneLinkButton.cs
- DataGridViewRowsAddedEventArgs.cs
- IndexingContentUnit.cs
- _ListenerAsyncResult.cs
- ConfigurationLocation.cs
- HMACSHA256.cs
- CorrelationTokenInvalidatedHandler.cs
- TagMapInfo.cs
- ControlPropertyNameConverter.cs
- GroupBox.cs
- TaiwanCalendar.cs
- PictureBox.cs
- basemetadatamappingvisitor.cs
- WinEventTracker.cs
- WeakReference.cs
- InstanceLockedException.cs
- GeometryDrawing.cs
- NodeFunctions.cs
- HttpListenerException.cs
- DragDrop.cs
- SemanticValue.cs
- RepeaterItem.cs
- TimeStampChecker.cs
- TimeIntervalCollection.cs
- AttributeSetAction.cs
- OleCmdHelper.cs
- MultiplexingFormatMapping.cs
- SystemBrushes.cs
- ResourceManager.cs
- RawStylusInputCustomDataList.cs
- WindowsListViewItemCheckBox.cs
- LineServicesCallbacks.cs
- ServiceDesigner.cs
- SystemDiagnosticsSection.cs
- AlphabetConverter.cs
- CollectionChangedEventManager.cs
- WindowsScrollBarBits.cs
- TreeViewImageKeyConverter.cs
- QueueSurrogate.cs
- SByteStorage.cs
- SortExpressionBuilder.cs
- CryptoApi.cs
- TypeSystem.cs
- ServerIdentity.cs
- XLinq.cs
- ListViewCommandEventArgs.cs
- ListBox.cs
- StatusInfoItem.cs
- DataKey.cs
- InputLangChangeRequestEvent.cs
- DTCTransactionManager.cs
- ISSmlParser.cs
- ValueChangedEventManager.cs
- cryptoapiTransform.cs
- EncoderParameters.cs
- BamlLocalizableResource.cs
- WebControlsSection.cs
- DataGridLengthConverter.cs
- XNodeValidator.cs
- LogArchiveSnapshot.cs
- FixedDSBuilder.cs
- FileFormatException.cs
- SafeFileMapViewHandle.cs
- XmlSchemaSimpleTypeRestriction.cs
- WebPartMovingEventArgs.cs
- documentation.cs
- LinearKeyFrames.cs
- InternalCache.cs
- ComponentEvent.cs
- IDictionary.cs
- VideoDrawing.cs
- EntityDesignerUtils.cs
- FrugalMap.cs
- DataColumnMapping.cs
- GridItem.cs
- ProcessHostConfigUtils.cs
- AuthenticationManager.cs
- DesignBindingPicker.cs
- IDataContractSurrogate.cs
- FormCollection.cs
- BindingContext.cs
- CodeCompiler.cs
- DurationConverter.cs
- CustomWebEventKey.cs