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
- DispatcherOperation.cs
- Canvas.cs
- BigInt.cs
- DbConnectionStringBuilder.cs
- DataTableReaderListener.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- CurrentChangingEventManager.cs
- DataGridViewColumnCollection.cs
- SubtreeProcessor.cs
- RequestChannel.cs
- TraceData.cs
- RectangleHotSpot.cs
- DataView.cs
- Calendar.cs
- BinHexEncoding.cs
- OperatorExpressions.cs
- LinkUtilities.cs
- AssemblyNameProxy.cs
- WebPermission.cs
- DynamicMetaObject.cs
- TemplateField.cs
- CapabilitiesState.cs
- ComponentSerializationService.cs
- QilTernary.cs
- WindowsSolidBrush.cs
- ContextMenuAutomationPeer.cs
- TextRunTypographyProperties.cs
- SectionXmlInfo.cs
- DataControlCommands.cs
- UnsafeNativeMethodsMilCoreApi.cs
- InvalidDataException.cs
- RawMouseInputReport.cs
- DataGridViewTopRowAccessibleObject.cs
- Calendar.cs
- RegexNode.cs
- OutputCacheSettings.cs
- TypedRowGenerator.cs
- SHA512.cs
- SqlSupersetValidator.cs
- _NegoState.cs
- RuleInfoComparer.cs
- SchemaInfo.cs
- ToolStripOverflow.cs
- SqlClientMetaDataCollectionNames.cs
- AmbientLight.cs
- ScrollViewerAutomationPeer.cs
- PtsHelper.cs
- PropertyGridCommands.cs
- CacheChildrenQuery.cs
- EditingCommands.cs
- FormViewInsertedEventArgs.cs
- OdbcErrorCollection.cs
- BitmapData.cs
- LogAppendAsyncResult.cs
- IndexingContentUnit.cs
- ContainerUIElement3D.cs
- KeysConverter.cs
- Debug.cs
- UidManager.cs
- DesignerActionService.cs
- TemplateControlCodeDomTreeGenerator.cs
- RegistryPermission.cs
- Cursor.cs
- DefaultEvaluationContext.cs
- bidPrivateBase.cs
- ProxyGenerationError.cs
- SchemaElement.cs
- ConfigXmlAttribute.cs
- RtfToXamlReader.cs
- InputBuffer.cs
- XmlSerializer.cs
- PixelFormatConverter.cs
- ServiceOperationInvoker.cs
- TextServicesPropertyRanges.cs
- TextPattern.cs
- RestHandler.cs
- TimeSpanSecondsConverter.cs
- ProjectionCamera.cs
- ListViewHitTestInfo.cs
- SiteMembershipCondition.cs
- TextParagraphProperties.cs
- CellRelation.cs
- SmiEventSink_DeferedProcessing.cs
- IgnoreSectionHandler.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- XmlDictionaryReaderQuotasElement.cs
- ConfigurationSectionGroupCollection.cs
- ResourceLoader.cs
- ExternalDataExchangeClient.cs
- RC2CryptoServiceProvider.cs
- DecoderNLS.cs
- CustomTypeDescriptor.cs
- StrokeDescriptor.cs
- TransactionContextValidator.cs
- x509store.cs
- ClientRoleProvider.cs
- _FixedSizeReader.cs
- ListView.cs
- Table.cs
- ComponentDispatcherThread.cs