Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / Net / System / Net / Configuration / UriSection.cs / 1 / UriSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Threading; ////// Summary description for UriSection. /// public sealed class UriSection : ConfigurationSection { public UriSection(){ this.properties.Add(this.idn); this.properties.Add(this.iriParsing); } [ConfigurationProperty(CommonConfigurationStrings.Idn)] public IdnElement Idn{ get { return (IdnElement)this[this.idn]; } } [ConfigurationProperty(CommonConfigurationStrings.IriParsing)] public IriParsingElement IriParsing { get{ return (IriParsingElement)this[this.iriParsing]; } } protected override ConfigurationPropertyCollection Properties { get{ return this.properties; } } ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); readonly ConfigurationProperty idn = new ConfigurationProperty(CommonConfigurationStrings.Idn, typeof(IdnElement), null, ConfigurationPropertyOptions.None); readonly ConfigurationProperty iriParsing = new ConfigurationProperty(CommonConfigurationStrings.IriParsing, typeof(IriParsingElement), null, ConfigurationPropertyOptions.None); } internal sealed class UriSectionInternal { internal UriSectionInternal(UriSection section) { this.idn = section.Idn.Enabled; this.iriParsing = section.IriParsing.Enabled; } internal UriIdnScope Idn { get { return this.idn; } } internal bool IriParsing { get { return this.iriParsing; } } bool iriParsing; UriIdnScope idn; internal static object ClassSyncObject { get{ if (classSyncObject == null){ Interlocked.CompareExchange(ref classSyncObject, new object(), null); } return classSyncObject; } } internal static UriSectionInternal GetSection() { lock (ClassSyncObject){ UriSection section = PrivilegedConfigurationManager.GetSection(CommonConfigurationStrings.UriSectionPath) as UriSection; if (section == null) return null; return new UriSectionInternal(section); } } private static object classSyncObject; } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CharacterBuffer.cs
- CollectionViewGroupRoot.cs
- StylusShape.cs
- PropertyValueUIItem.cs
- FixedSchema.cs
- ServiceManager.cs
- MaskedTextProvider.cs
- NotificationContext.cs
- DummyDataSource.cs
- BufferedGraphicsManager.cs
- WorkflowViewManager.cs
- SynthesizerStateChangedEventArgs.cs
- Preprocessor.cs
- LowerCaseStringConverter.cs
- DeleteHelper.cs
- DropDownList.cs
- ScriptReferenceBase.cs
- AuthenticationManager.cs
- DynamicPropertyReader.cs
- NullableDecimalAverageAggregationOperator.cs
- DataSourceControlBuilder.cs
- MetadataArtifactLoaderCompositeFile.cs
- ToolBarPanel.cs
- DataRowView.cs
- MarshalByValueComponent.cs
- SamlDelegatingWriter.cs
- _Win32.cs
- ChannelPoolSettings.cs
- FolderLevelBuildProvider.cs
- LinqDataSourceContextData.cs
- OutputCacheProfile.cs
- CodeNamespace.cs
- TouchFrameEventArgs.cs
- ScalarType.cs
- ResolveNameEventArgs.cs
- InternalResources.cs
- DataGridViewSelectedCellCollection.cs
- DocumentPaginator.cs
- AutoResetEvent.cs
- ThreadInterruptedException.cs
- EncodingTable.cs
- AuthenticationModuleElementCollection.cs
- MenuRendererClassic.cs
- EdmToObjectNamespaceMap.cs
- SymbolPair.cs
- TriggerActionCollection.cs
- LocatorManager.cs
- Transactions.cs
- CatalogZone.cs
- ProxyDataContractResolver.cs
- TypeReference.cs
- TextRunCacheImp.cs
- MatrixTransform.cs
- ListControlConvertEventArgs.cs
- WorkflowInstanceQuery.cs
- MdImport.cs
- mediaeventargs.cs
- TargetException.cs
- HorizontalAlignConverter.cs
- PageThemeParser.cs
- WebConvert.cs
- ActivationServices.cs
- TickBar.cs
- OptimizerPatterns.cs
- Html32TextWriter.cs
- NavigationExpr.cs
- SystemInfo.cs
- FontResourceCache.cs
- WebPartChrome.cs
- XmlIlTypeHelper.cs
- PageThemeParser.cs
- RenderTargetBitmap.cs
- OpenTypeLayoutCache.cs
- HeaderCollection.cs
- HttpModuleAction.cs
- HostingEnvironmentSection.cs
- Visual.cs
- HtmlHistory.cs
- StyleTypedPropertyAttribute.cs
- TargetParameterCountException.cs
- SecurityUniqueId.cs
- RichTextBox.cs
- HebrewCalendar.cs
- SynchronizationScope.cs
- Random.cs
- Vector3D.cs
- AsyncCompletedEventArgs.cs
- HttpRawResponse.cs
- ReadOnlyPermissionSet.cs
- TemplateBaseAction.cs
- ProxyWebPart.cs
- Operator.cs
- SizeIndependentAnimationStorage.cs
- FtpCachePolicyElement.cs
- ExpressionBuilderContext.cs
- rsa.cs
- ParameterReplacerVisitor.cs
- TreeNodeStyle.cs
- TemplateFactory.cs
- Attributes.cs