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
- XmlDownloadManager.cs
- PropertyEmitter.cs
- StringDictionaryEditor.cs
- Inline.cs
- MetafileHeader.cs
- BackStopAuthenticationModule.cs
- Rectangle.cs
- PointKeyFrameCollection.cs
- AppDomainProtocolHandler.cs
- BoundsDrawingContextWalker.cs
- DefaultBindingPropertyAttribute.cs
- DefaultTextStore.cs
- SmtpException.cs
- PropertyGeneratedEventArgs.cs
- BoolExpression.cs
- Select.cs
- COM2Enum.cs
- RemotingServices.cs
- ObjectConverter.cs
- DataGridComponentEditor.cs
- TreeNode.cs
- CardSpacePolicyElement.cs
- UIPermission.cs
- BrowserCapabilitiesCompiler.cs
- FormViewPageEventArgs.cs
- WpfXamlLoader.cs
- OutputCacheSettings.cs
- IntellisenseTextBox.designer.cs
- CannotUnloadAppDomainException.cs
- UriParserTemplates.cs
- SoapAttributes.cs
- ComNativeDescriptor.cs
- AppDomainEvidenceFactory.cs
- GatewayDefinition.cs
- ModelMemberCollection.cs
- ADConnectionHelper.cs
- DateTimeOffsetConverter.cs
- TreeViewAutomationPeer.cs
- errorpatternmatcher.cs
- MenuBindingsEditorForm.cs
- CompoundFileReference.cs
- UnsafeNativeMethods.cs
- SqlConnectionManager.cs
- ProfileSettingsCollection.cs
- InheritanceRules.cs
- FullTrustAssemblyCollection.cs
- IndentedTextWriter.cs
- RandomNumberGenerator.cs
- TimeSpan.cs
- CharacterBufferReference.cs
- UndoManager.cs
- PaintValueEventArgs.cs
- UnsafeNativeMethods.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ConnectionConsumerAttribute.cs
- ObjectViewQueryResultData.cs
- Single.cs
- FloaterParaClient.cs
- EntityProviderFactory.cs
- Type.cs
- Part.cs
- GeometryModel3D.cs
- SortKey.cs
- XPathQilFactory.cs
- While.cs
- BuildProvidersCompiler.cs
- LinearKeyFrames.cs
- XmlAttributes.cs
- NamedPermissionSet.cs
- BeginEvent.cs
- BridgeDataRecord.cs
- MessageEnumerator.cs
- RequestCache.cs
- DrawingContextDrawingContextWalker.cs
- DBParameter.cs
- WbemException.cs
- SessionPageStatePersister.cs
- SafeCancelMibChangeNotify.cs
- DateRangeEvent.cs
- DocumentsTrace.cs
- TypeRestriction.cs
- ScheduleChanges.cs
- QilTargetType.cs
- InstalledFontCollection.cs
- FormsAuthenticationUser.cs
- PersonalizableTypeEntry.cs
- DesignerRegion.cs
- OneOfConst.cs
- Menu.cs
- FontResourceCache.cs
- ControlEvent.cs
- ReferencedAssembly.cs
- CultureMapper.cs
- TraceSwitch.cs
- ButtonBaseDesigner.cs
- Figure.cs
- CheckBox.cs
- EncoderFallback.cs
- CodeGenHelper.cs
- ComponentGuaranteesAttribute.cs