Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / WindowsFormsSectionHandler.cs / 1305376 / WindowsFormsSectionHandler.cs
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope="member", Target="System.Windows.Forms.WindowsFormsSectionHandler..ctor()")] namespace System.Windows.Forms { using System; using System.Diagnostics; using System.Configuration; public sealed class WindowsFormsSection : ConfigurationSection { internal const bool JitDebuggingDefault = false; private static ConfigurationPropertyCollection s_properties; private static ConfigurationProperty s_propJitDebugging; internal static WindowsFormsSection GetSection() { WindowsFormsSection section = null; try { section = (WindowsFormsSection) System.Configuration.PrivilegedConfigurationManager.GetSection("system.windows.forms"); } catch { Debug.Fail("Exception loading config for windows forms"); section = new WindowsFormsSection(); } return section; } private static ConfigurationPropertyCollection EnsureStaticPropertyBag() { if (s_properties == null) { s_propJitDebugging = new ConfigurationProperty("jitDebugging", typeof(bool), JitDebuggingDefault, ConfigurationPropertyOptions.None); ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); properties.Add(s_propJitDebugging); s_properties = properties; } return s_properties; } public WindowsFormsSection() { EnsureStaticPropertyBag(); } protected override ConfigurationPropertyCollection Properties { get { return EnsureStaticPropertyBag(); } } [ConfigurationProperty("jitDebugging", DefaultValue=JitDebuggingDefault)] public bool JitDebugging { get { return (bool) base[s_propJitDebugging]; } set { base[s_propJitDebugging] = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope="member", Target="System.Windows.Forms.WindowsFormsSectionHandler..ctor()")] namespace System.Windows.Forms { using System; using System.Diagnostics; using System.Configuration; public sealed class WindowsFormsSection : ConfigurationSection { internal const bool JitDebuggingDefault = false; private static ConfigurationPropertyCollection s_properties; private static ConfigurationProperty s_propJitDebugging; internal static WindowsFormsSection GetSection() { WindowsFormsSection section = null; try { section = (WindowsFormsSection) System.Configuration.PrivilegedConfigurationManager.GetSection("system.windows.forms"); } catch { Debug.Fail("Exception loading config for windows forms"); section = new WindowsFormsSection(); } return section; } private static ConfigurationPropertyCollection EnsureStaticPropertyBag() { if (s_properties == null) { s_propJitDebugging = new ConfigurationProperty("jitDebugging", typeof(bool), JitDebuggingDefault, ConfigurationPropertyOptions.None); ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); properties.Add(s_propJitDebugging); s_properties = properties; } return s_properties; } public WindowsFormsSection() { EnsureStaticPropertyBag(); } protected override ConfigurationPropertyCollection Properties { get { return EnsureStaticPropertyBag(); } } [ConfigurationProperty("jitDebugging", DefaultValue=JitDebuggingDefault)] public bool JitDebugging { get { return (bool) base[s_propJitDebugging]; } set { base[s_propJitDebugging] = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MethodImplAttribute.cs
- ProxyManager.cs
- DataSet.cs
- ParameterToken.cs
- XmlMembersMapping.cs
- GlyphRunDrawing.cs
- safesecurityhelperavalon.cs
- Char.cs
- TimeSpan.cs
- ToolStripPanelRenderEventArgs.cs
- TickBar.cs
- DataGridViewColumnCollectionEditor.cs
- TextTreeTextBlock.cs
- TableStyle.cs
- Section.cs
- ToolStripMenuItemCodeDomSerializer.cs
- InvalidPrinterException.cs
- TemplateControlBuildProvider.cs
- EventLogPermissionEntryCollection.cs
- TypedTableGenerator.cs
- ProxyWebPartManager.cs
- WindowsSlider.cs
- GAC.cs
- WindowsTitleBar.cs
- DictionaryBase.cs
- XMLDiffLoader.cs
- DbSource.cs
- CollectionChange.cs
- DesignSurfaceManager.cs
- ServicesExceptionNotHandledEventArgs.cs
- Rectangle.cs
- QilBinary.cs
- HeaderedItemsControl.cs
- FrameworkPropertyMetadata.cs
- Crc32.cs
- SqlNodeAnnotation.cs
- GridPattern.cs
- PerfProviderCollection.cs
- RsaSecurityKey.cs
- NameNode.cs
- BevelBitmapEffect.cs
- TreeNodeCollection.cs
- PathGeometry.cs
- RenderOptions.cs
- DataGridViewCellLinkedList.cs
- DefaultAuthorizationContext.cs
- NavigateEvent.cs
- AutomationPatternInfo.cs
- DynamicResourceExtensionConverter.cs
- ApplicationHost.cs
- ReferenceAssemblyAttribute.cs
- GeneralTransform3DTo2D.cs
- GenericEnumerator.cs
- CodeAccessSecurityEngine.cs
- ReadOnlyPropertyMetadata.cs
- TextRange.cs
- FragmentQuery.cs
- DocumentXPathNavigator.cs
- TextFormatterHost.cs
- DeflateEmulationStream.cs
- NumericUpDownAccelerationCollection.cs
- QueryReaderSettings.cs
- DataGridViewCellStyleChangedEventArgs.cs
- mediapermission.cs
- DomainConstraint.cs
- DateTimeAutomationPeer.cs
- DetailsViewUpdatedEventArgs.cs
- ReadWriteSpinLock.cs
- TextServicesPropertyRanges.cs
- DataServiceExpressionVisitor.cs
- FtpWebResponse.cs
- CopyNodeSetAction.cs
- CodeGroup.cs
- Package.cs
- X509Certificate2Collection.cs
- ProxyHwnd.cs
- GridProviderWrapper.cs
- DropShadowEffect.cs
- MembershipUser.cs
- PnrpPeerResolverBindingElement.cs
- NamespaceCollection.cs
- ContextQuery.cs
- AlternateView.cs
- TableCellAutomationPeer.cs
- FormattedText.cs
- TemplateBaseAction.cs
- XmlTextReader.cs
- ResourceProviderFactory.cs
- Expression.DebuggerProxy.cs
- TracedNativeMethods.cs
- StylusTip.cs
- safex509handles.cs
- SizeValueSerializer.cs
- ArrayConverter.cs
- XmlCompatibilityReader.cs
- DPTypeDescriptorContext.cs
- FixedSOMSemanticBox.cs
- ItemList.cs
- SymbolUsageManager.cs
- SqlEnums.cs