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
- SQLGuidStorage.cs
- CommandDesigner.cs
- TypeElementCollection.cs
- ReaderOutput.cs
- StreamGeometry.cs
- SQLCharsStorage.cs
- CodeDomSerializerException.cs
- WebEventTraceProvider.cs
- InternalResources.cs
- InvokeMethodActivity.cs
- MemberJoinTreeNode.cs
- WebPartDisplayModeCollection.cs
- XPathChildIterator.cs
- SqlCommand.cs
- CalendarDataBindingHandler.cs
- Registry.cs
- TransformedBitmap.cs
- TraceProvider.cs
- SortKey.cs
- Accessible.cs
- XmlNamespaceMapping.cs
- Focus.cs
- Point3DValueSerializer.cs
- TileBrush.cs
- WebConfigurationManager.cs
- EnumerableWrapperWeakToStrong.cs
- ZipIOCentralDirectoryBlock.cs
- DebugView.cs
- CompilerParameters.cs
- TextDecorations.cs
- SignatureSummaryDialog.cs
- Converter.cs
- RsaSecurityToken.cs
- WorkflowEnvironment.cs
- Attributes.cs
- FileEnumerator.cs
- InkCanvas.cs
- TextTreeText.cs
- OfTypeExpression.cs
- HtmlTableRowCollection.cs
- StateMachineDesignerPaint.cs
- LongValidatorAttribute.cs
- Image.cs
- XmlSignificantWhitespace.cs
- AddingNewEventArgs.cs
- ByteAnimationUsingKeyFrames.cs
- DesignerActionService.cs
- SystemNetworkInterface.cs
- Error.cs
- WizardSideBarListControlItem.cs
- IncrementalCompileAnalyzer.cs
- ContextProperty.cs
- EmptyArray.cs
- RoamingStoreFileUtility.cs
- SqlDataSource.cs
- UnhandledExceptionEventArgs.cs
- CustomError.cs
- ISAPIWorkerRequest.cs
- ObjectListCommandCollection.cs
- LockedAssemblyCache.cs
- PolicyManager.cs
- OpacityConverter.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- ObjectReaderCompiler.cs
- MarkerProperties.cs
- WebPartVerb.cs
- LinkButton.cs
- PenLineJoinValidation.cs
- AnnotationMap.cs
- ValueProviderWrapper.cs
- Int16AnimationBase.cs
- SqlGatherProducedAliases.cs
- MulticastDelegate.cs
- GridViewRowPresenterBase.cs
- DetailsView.cs
- WebSysDisplayNameAttribute.cs
- ConfigXmlComment.cs
- XmlCharType.cs
- XhtmlBasicCalendarAdapter.cs
- TreeNodeCollectionEditor.cs
- SettingsPropertyNotFoundException.cs
- RedBlackList.cs
- DataGridViewCellConverter.cs
- HttpWebRequestElement.cs
- AppSettingsSection.cs
- RawMouseInputReport.cs
- SchemaSetCompiler.cs
- SiteMapNodeItem.cs
- Cursors.cs
- ImplicitInputBrush.cs
- Msmq4PoisonHandler.cs
- UIPropertyMetadata.cs
- DataViewManagerListItemTypeDescriptor.cs
- Interfaces.cs
- RTLAwareMessageBox.cs
- ClientSettingsProvider.cs
- QuaternionRotation3D.cs
- CategoryAttribute.cs
- InlinedAggregationOperatorEnumerator.cs
- ContextStack.cs