Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / WindowsFormsSectionHandler.cs / 1 / 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
- GeneralTransform3DGroup.cs
- WebPartDescriptionCollection.cs
- XNameConverter.cs
- ClientRolePrincipal.cs
- ManagementQuery.cs
- SetterBase.cs
- TraceSection.cs
- TriggerCollection.cs
- AsyncStreamReader.cs
- TreeViewDataItemAutomationPeer.cs
- XmlSchemas.cs
- handlecollector.cs
- TypeInfo.cs
- WorkflowServiceBuildProvider.cs
- GregorianCalendar.cs
- SrgsElementList.cs
- ObjectDataSourceDisposingEventArgs.cs
- DataViewManager.cs
- TreeBuilder.cs
- OlePropertyStructs.cs
- Tablet.cs
- ChooseAction.cs
- ActivationWorker.cs
- Document.cs
- SmiSettersStream.cs
- MonitorWrapper.cs
- ClockGroup.cs
- RoleManagerEventArgs.cs
- ClockGroup.cs
- MetadataPropertyCollection.cs
- FixedDocumentPaginator.cs
- ChangeTracker.cs
- ClientSponsor.cs
- Triplet.cs
- NameTable.cs
- DoubleUtil.cs
- ObjectListTitleAttribute.cs
- ExceptionValidationRule.cs
- DocumentPageViewAutomationPeer.cs
- ColorPalette.cs
- AdRotator.cs
- GorillaCodec.cs
- DataGridViewComboBoxColumnDesigner.cs
- SHA1Managed.cs
- CategoryValueConverter.cs
- LocatorBase.cs
- DefaultTraceListener.cs
- GridViewUpdateEventArgs.cs
- BufferedWebEventProvider.cs
- SettingsPropertyValue.cs
- MessageEncoder.cs
- SystemUdpStatistics.cs
- NativeMethods.cs
- HandleTable.cs
- MessageDecoder.cs
- BrowserCapabilitiesFactoryBase.cs
- ReferentialConstraint.cs
- _AuthenticationState.cs
- NotFiniteNumberException.cs
- DiscoveryDefaults.cs
- ResourceManagerWrapper.cs
- DataKeyArray.cs
- SiteMap.cs
- SqlDataSourceQueryConverter.cs
- CallbackValidator.cs
- ExpressionVisitor.cs
- ProtectedConfiguration.cs
- XmlUnspecifiedAttribute.cs
- SafeProcessHandle.cs
- ControlTemplate.cs
- RectConverter.cs
- RotateTransform3D.cs
- Pool.cs
- XmlChoiceIdentifierAttribute.cs
- Timeline.cs
- BamlReader.cs
- FontStretch.cs
- FixedSOMTableCell.cs
- SmiGettersStream.cs
- SystemEvents.cs
- BitmapEncoder.cs
- UnknownBitmapDecoder.cs
- Clause.cs
- SignatureToken.cs
- TemplateControlParser.cs
- InitializingNewItemEventArgs.cs
- SelectionChangedEventArgs.cs
- PeerObject.cs
- Line.cs
- KeyManager.cs
- NullExtension.cs
- CodeArrayIndexerExpression.cs
- ObjectListDataBindEventArgs.cs
- DetailsViewCommandEventArgs.cs
- RuleElement.cs
- DocumentPageHost.cs
- TextEditorLists.cs
- Claim.cs
- IisTraceWebEventProvider.cs
- FormatSettings.cs