Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- XmlEntityReference.cs
- ValidatedControlConverter.cs
- XPathSingletonIterator.cs
- XmlDesigner.cs
- WindowsSpinner.cs
- CodeDirectiveCollection.cs
- TreeNode.cs
- CodeIndexerExpression.cs
- WarningException.cs
- ActivityExecutorDelegateInfo.cs
- BrowserCapabilitiesCompiler.cs
- KeyEventArgs.cs
- TextBoxView.cs
- UnitySerializationHolder.cs
- SamlAction.cs
- LoginCancelEventArgs.cs
- DataTablePropertyDescriptor.cs
- SqlGenericUtil.cs
- TreeNodeConverter.cs
- AvTraceFormat.cs
- CSharpCodeProvider.cs
- NetworkInterface.cs
- WebRequest.cs
- FormatStringEditor.cs
- CqlIdentifiers.cs
- HttpCapabilitiesEvaluator.cs
- CodeChecksumPragma.cs
- PropertyEntry.cs
- ControlPropertyNameConverter.cs
- RSAOAEPKeyExchangeFormatter.cs
- TrackingParameters.cs
- LogRestartAreaEnumerator.cs
- WrappedIUnknown.cs
- IBuiltInEvidence.cs
- DateBoldEvent.cs
- SrgsElementFactory.cs
- DbModificationCommandTree.cs
- DataViewSetting.cs
- EventDescriptorCollection.cs
- EventDescriptor.cs
- HttpHandler.cs
- streamingZipPartStream.cs
- ClientScriptItem.cs
- StandardCommandToolStripMenuItem.cs
- MemoryStream.cs
- ChannelCredentials.cs
- XmlExtensionFunction.cs
- ZoneIdentityPermission.cs
- PathNode.cs
- ScriptDescriptor.cs
- _SecureChannel.cs
- WriteLineDesigner.xaml.cs
- ButtonStandardAdapter.cs
- DefaultValidator.cs
- Metafile.cs
- NamedPipeConnectionPoolSettings.cs
- TraceHwndHost.cs
- OperationPerformanceCounters.cs
- SqlSelectStatement.cs
- FixedSOMPage.cs
- CodeThrowExceptionStatement.cs
- ValidatorCompatibilityHelper.cs
- PlatformNotSupportedException.cs
- ActionNotSupportedException.cs
- PagedDataSource.cs
- MergePropertyDescriptor.cs
- RbTree.cs
- Internal.cs
- AccessDataSource.cs
- AlphaSortedEnumConverter.cs
- Pkcs9Attribute.cs
- WebSysDescriptionAttribute.cs
- MultilineStringConverter.cs
- ZoneButton.cs
- DesignBinding.cs
- JpegBitmapEncoder.cs
- NetTcpSection.cs
- ExtractorMetadata.cs
- mediaeventargs.cs
- AdornerHitTestResult.cs
- MruCache.cs
- XmlImplementation.cs
- PolygonHotSpot.cs
- PublisherMembershipCondition.cs
- ObjectDataSourceMethodEventArgs.cs
- IssuedTokenServiceElement.cs
- WmlCommandAdapter.cs
- GacUtil.cs
- DrawingCollection.cs
- ConnectionsZoneAutoFormat.cs
- OdbcStatementHandle.cs
- Pkcs9Attribute.cs
- TextUtf8RawTextWriter.cs
- DataConnectionHelper.cs
- CfgParser.cs
- SqlNode.cs
- UInt32Storage.cs
- InvalidAsynchronousStateException.cs
- UnsafeNativeMethods.cs
- Dynamic.cs