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
- ForceCopyBuildProvider.cs
- DeviceContext.cs
- ImportedNamespaceContextItem.cs
- _Semaphore.cs
- DocumentPageHost.cs
- StyleTypedPropertyAttribute.cs
- InplaceBitmapMetadataWriter.cs
- ServerValidateEventArgs.cs
- XNodeNavigator.cs
- WebPartHelpVerb.cs
- ListItemConverter.cs
- XmlNodeReader.cs
- PolyBezierSegment.cs
- UnitControl.cs
- AutomationPatternInfo.cs
- ItemsChangedEventArgs.cs
- TextEditorMouse.cs
- BaseCodePageEncoding.cs
- ServiceAuthorizationElement.cs
- CultureInfoConverter.cs
- DictionaryMarkupSerializer.cs
- SqlDataRecord.cs
- DiagnosticsConfigurationHandler.cs
- ExpressionBuilder.cs
- SystemFonts.cs
- SiteMembershipCondition.cs
- MessageLoggingElement.cs
- CqlBlock.cs
- SequentialWorkflowHeaderFooter.cs
- BitmapEffectInput.cs
- StdValidatorsAndConverters.cs
- OptimalTextSource.cs
- HostingPreferredMapPath.cs
- SolidBrush.cs
- List.cs
- PropertyItem.cs
- TableStyle.cs
- HitTestWithPointDrawingContextWalker.cs
- PictureBox.cs
- ProtocolsConfigurationEntry.cs
- ActivityDesignerAccessibleObject.cs
- SchemaType.cs
- AndMessageFilterTable.cs
- WebBrowserDesigner.cs
- Control.cs
- CodeValidator.cs
- BitmapSizeOptions.cs
- WebPartManager.cs
- altserialization.cs
- HtmlInputButton.cs
- ToolStripTextBox.cs
- RequestReplyCorrelator.cs
- AnnotationResource.cs
- LoginCancelEventArgs.cs
- BamlTreeMap.cs
- OleDbConnectionInternal.cs
- Registry.cs
- XmlStreamNodeWriter.cs
- TableCell.cs
- TickBar.cs
- GeometryModel3D.cs
- UnmanagedMemoryStream.cs
- PrintEvent.cs
- LookupNode.cs
- RtfToken.cs
- DelegatingConfigHost.cs
- ContentPlaceHolder.cs
- ChtmlLinkAdapter.cs
- RowsCopiedEventArgs.cs
- SafeUserTokenHandle.cs
- nulltextnavigator.cs
- FillRuleValidation.cs
- DataGridViewTopLeftHeaderCell.cs
- CatalogZoneBase.cs
- PatternMatcher.cs
- TableCellAutomationPeer.cs
- BinaryUtilClasses.cs
- SafeNativeMethodsCLR.cs
- DetailsView.cs
- HierarchicalDataBoundControlAdapter.cs
- WaitingCursor.cs
- TableRowGroupCollection.cs
- FamilyTypeface.cs
- HelpInfo.cs
- SynchronizingStream.cs
- XmlSchemaAppInfo.cs
- UrlMappingsModule.cs
- BitmapEffect.cs
- bidPrivateBase.cs
- ImageList.cs
- CloseCollectionAsyncResult.cs
- DependencyPropertyAttribute.cs
- DataGridViewRow.cs
- OptimalTextSource.cs
- RecognizeCompletedEventArgs.cs
- DynamicQueryableWrapper.cs
- ElementHostPropertyMap.cs
- IpcClientManager.cs
- DataGridViewTopRowAccessibleObject.cs
- NumberFunctions.cs