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
- LassoSelectionBehavior.cs
- PreservationFileWriter.cs
- TranslateTransform.cs
- FeatureManager.cs
- ServiceHttpHandlerFactory.cs
- Journaling.cs
- RuntimeEnvironment.cs
- ButtonColumn.cs
- LineBreak.cs
- ObjectDataProvider.cs
- CapabilitiesUse.cs
- Perspective.cs
- PreloadHost.cs
- GeneralTransform3DTo2D.cs
- C14NUtil.cs
- SpecularMaterial.cs
- ConstraintCollection.cs
- SoapEnumAttribute.cs
- WebServiceClientProxyGenerator.cs
- DataSourceProvider.cs
- Lease.cs
- DispatcherOperation.cs
- AsyncResult.cs
- AutomationEvent.cs
- MasterPageCodeDomTreeGenerator.cs
- Descriptor.cs
- Grid.cs
- hresults.cs
- MergeFilterQuery.cs
- FormatSettings.cs
- regiisutil.cs
- WebMessageBodyStyleHelper.cs
- Stroke.cs
- MatrixValueSerializer.cs
- FilteredAttributeCollection.cs
- EntityFrameworkVersions.cs
- DocComment.cs
- AttachedAnnotation.cs
- XmlDownloadManager.cs
- ClockGroup.cs
- SecurityManager.cs
- ScriptControlDescriptor.cs
- HTMLTextWriter.cs
- Events.cs
- FileFormatException.cs
- BreakRecordTable.cs
- TreeBuilderBamlTranslator.cs
- ObjectQueryProvider.cs
- SqlConnectionFactory.cs
- SynchronizationLockException.cs
- SHA1CryptoServiceProvider.cs
- SafeEventLogWriteHandle.cs
- PreviewPageInfo.cs
- Crc32.cs
- FrameworkEventSource.cs
- ZipIOLocalFileBlock.cs
- ExternalException.cs
- XPathChildIterator.cs
- Rect3DConverter.cs
- ValueConversionAttribute.cs
- DefaultParameterValueAttribute.cs
- EntityDataSourceViewSchema.cs
- RegexTree.cs
- HighlightComponent.cs
- SByteConverter.cs
- XsltConvert.cs
- EngineSite.cs
- XmlNode.cs
- Int16.cs
- SizeAnimationBase.cs
- Context.cs
- TextViewDesigner.cs
- WindowsListViewItemStartMenu.cs
- Listen.cs
- ZipIOModeEnforcingStream.cs
- RangeValidator.cs
- HttpProfileGroupBase.cs
- BindingCollection.cs
- OciEnlistContext.cs
- Listbox.cs
- DataExpression.cs
- SqlCommand.cs
- EdmTypeAttribute.cs
- XmlExceptionHelper.cs
- TextContainer.cs
- StrokeNode.cs
- IgnoreSection.cs
- SaveLedgerEntryRequest.cs
- ChtmlSelectionListAdapter.cs
- HtmlElementErrorEventArgs.cs
- SmiEventStream.cs
- PageBreakRecord.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- XmlILConstructAnalyzer.cs
- PenContext.cs
- HebrewNumber.cs
- FilterableData.cs
- HtmlInputPassword.cs
- PrimitiveCodeDomSerializer.cs
- XslException.cs