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
- ConfigDefinitionUpdates.cs
- FieldAccessException.cs
- ThreadStaticAttribute.cs
- PropertyChangingEventArgs.cs
- Adorner.cs
- AnnotationMap.cs
- InvalidFilterCriteriaException.cs
- RawStylusInput.cs
- View.cs
- IgnoreSection.cs
- ShapingWorkspace.cs
- PassportIdentity.cs
- MSHTMLHost.cs
- ReadOnlyKeyedCollection.cs
- TextLineResult.cs
- EventSource.cs
- PackageStore.cs
- IDQuery.cs
- DataGridItemEventArgs.cs
- PublisherMembershipCondition.cs
- StylusPlugInCollection.cs
- KeyEventArgs.cs
- SymmetricAlgorithm.cs
- _ListenerRequestStream.cs
- PhonemeConverter.cs
- WorkflowOwnershipException.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- TreePrinter.cs
- IpcClientManager.cs
- ReadOnlyCollectionBase.cs
- FixedSOMPageElement.cs
- LogicalChannel.cs
- FormView.cs
- QuaternionAnimationBase.cs
- InheritedPropertyChangedEventArgs.cs
- RandomNumberGenerator.cs
- ProtocolViolationException.cs
- ExtensionSimplifierMarkupObject.cs
- DriveNotFoundException.cs
- RegexCaptureCollection.cs
- UDPClient.cs
- PropertyGridEditorPart.cs
- Dynamic.cs
- SqlDataRecord.cs
- CachingHintValidation.cs
- XmlQuerySequence.cs
- Interlocked.cs
- BaseHashHelper.cs
- WhitespaceRuleReader.cs
- XmlCountingReader.cs
- PrintingPermissionAttribute.cs
- StylusEventArgs.cs
- RichTextBoxAutomationPeer.cs
- DocumentReferenceCollection.cs
- WindowsClaimSet.cs
- SqlClientWrapperSmiStream.cs
- DataGridCell.cs
- XmlNode.cs
- Literal.cs
- TextOutput.cs
- ToggleButtonAutomationPeer.cs
- ClientSettingsSection.cs
- EntityDataSourceStatementEditorForm.cs
- Column.cs
- SchemaTableColumn.cs
- keycontainerpermission.cs
- SevenBitStream.cs
- DataBoundControl.cs
- DataGridViewComboBoxColumn.cs
- IBuiltInEvidence.cs
- BrushMappingModeValidation.cs
- TextDocumentView.cs
- XamlPoint3DCollectionSerializer.cs
- XmlILModule.cs
- DataServiceHostFactory.cs
- Timeline.cs
- MessageProtectionOrder.cs
- BitmapSourceSafeMILHandle.cs
- LifetimeServices.cs
- Panel.cs
- HtmlTextBoxAdapter.cs
- RoleManagerModule.cs
- WsdlEndpointConversionContext.cs
- InternalConfigEventArgs.cs
- RtfNavigator.cs
- wgx_render.cs
- ConfigurationStrings.cs
- XXXOnTypeBuilderInstantiation.cs
- VScrollBar.cs
- COAUTHIDENTITY.cs
- TypeSystemHelpers.cs
- GroupBox.cs
- IODescriptionAttribute.cs
- AccessDataSource.cs
- StateDesigner.CommentLayoutGlyph.cs
- NonVisualControlAttribute.cs
- OracleEncoding.cs
- SafeArrayTypeMismatchException.cs
- Transform.cs
- KeyToListMap.cs