Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Runtime / CompilerServices / RuntimeCompatibilityAttribute.cs / 1 / RuntimeCompatibilityAttribute.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// /*============================================================================== ** ** Class: RuntimeCompatibilityAttribute ** ** ** Purpose: Mark up the program to indicate various legacy or new opt-in behaviors. ** ** =============================================================================*/ namespace System.Runtime.CompilerServices { using System; [Serializable, AttributeUsage(AttributeTargets.Assembly, Inherited=false, AllowMultiple=false)] public sealed class RuntimeCompatibilityAttribute : Attribute { // fields private bool m_wrapNonExceptionThrows; // constructors public RuntimeCompatibilityAttribute() { // legacy behavior is the default, and m_wrapNonExceptionThrows is implicitly // false thanks to the CLR's guarantee of zeroed memory. } // properties // If a non-CLSCompliant exception (i.e. one that doesn't derive from System.Exception) is // thrown, should it be wrapped up in a System.Runtime.CompilerServices.RuntimeWrappedException // instance when presented to catch handlers? public bool WrapNonExceptionThrows { get { return m_wrapNonExceptionThrows; } set { m_wrapNonExceptionThrows = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// /*============================================================================== ** ** Class: RuntimeCompatibilityAttribute ** ** ** Purpose: Mark up the program to indicate various legacy or new opt-in behaviors. ** ** =============================================================================*/ namespace System.Runtime.CompilerServices { using System; [Serializable, AttributeUsage(AttributeTargets.Assembly, Inherited=false, AllowMultiple=false)] public sealed class RuntimeCompatibilityAttribute : Attribute { // fields private bool m_wrapNonExceptionThrows; // constructors public RuntimeCompatibilityAttribute() { // legacy behavior is the default, and m_wrapNonExceptionThrows is implicitly // false thanks to the CLR's guarantee of zeroed memory. } // properties // If a non-CLSCompliant exception (i.e. one that doesn't derive from System.Exception) is // thrown, should it be wrapped up in a System.Runtime.CompilerServices.RuntimeWrappedException // instance when presented to catch handlers? public bool WrapNonExceptionThrows { get { return m_wrapNonExceptionThrows; } set { m_wrapNonExceptionThrows = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CurrencyManager.cs
- MessageSecurityOverTcpElement.cs
- AsynchronousChannelMergeEnumerator.cs
- MexNamedPipeBindingCollectionElement.cs
- EnumerableRowCollectionExtensions.cs
- ExpressionNode.cs
- CookielessHelper.cs
- Debug.cs
- UrlRoutingModule.cs
- SafeNativeMethods.cs
- XmlSchemaValidator.cs
- ParallelEnumerable.cs
- CollectionTypeElement.cs
- XmlSchemaElement.cs
- ListViewCancelEventArgs.cs
- CacheSection.cs
- DataGridViewColumnCollectionDialog.cs
- EmissiveMaterial.cs
- DataGridViewHeaderCell.cs
- SafeNativeMethodsMilCoreApi.cs
- ClipboardData.cs
- WebEvents.cs
- TouchFrameEventArgs.cs
- ItemsPresenter.cs
- Calendar.cs
- UserPersonalizationStateInfo.cs
- PropertyCollection.cs
- WorkflowRuntimeService.cs
- PopOutPanel.cs
- SoapSchemaImporter.cs
- MouseWheelEventArgs.cs
- RelationshipEndMember.cs
- SimpleTextLine.cs
- XsdBuilder.cs
- WindowCollection.cs
- DataGridViewColumnEventArgs.cs
- MasterPageCodeDomTreeGenerator.cs
- FixedHighlight.cs
- _HTTPDateParse.cs
- ChainedAsyncResult.cs
- CodeMemberEvent.cs
- RegionInfo.cs
- VisualBasicExpressionConverter.cs
- MenuCommands.cs
- Int32RectValueSerializer.cs
- ForwardPositionQuery.cs
- SchemaAttDef.cs
- ParameterModifier.cs
- TypeUtil.cs
- DataGridViewTopRowAccessibleObject.cs
- PropertyDescriptorCollection.cs
- QilNode.cs
- TextRangeBase.cs
- ThreadAbortException.cs
- HiddenFieldPageStatePersister.cs
- ActionFrame.cs
- RequestStatusBarUpdateEventArgs.cs
- UpdatePanelControlTrigger.cs
- AutomationEvent.cs
- GetPageCompletedEventArgs.cs
- ImageClickEventArgs.cs
- InheritanceService.cs
- PrintPreviewDialog.cs
- DesignerActionGlyph.cs
- ModuleBuilder.cs
- ItemList.cs
- ObjectQueryProvider.cs
- CompositeTypefaceMetrics.cs
- PrimitiveDataContract.cs
- Properties.cs
- counter.cs
- CurrencyManager.cs
- UserPreferenceChangedEventArgs.cs
- invalidudtexception.cs
- TextEffect.cs
- DataGridTextBoxColumn.cs
- VirtualPathUtility.cs
- DefaultSettingsSection.cs
- ModelTreeEnumerator.cs
- XPathDocumentNavigator.cs
- MarkupObject.cs
- X509PeerCertificateAuthenticationElement.cs
- CollectionBuilder.cs
- HostingEnvironmentException.cs
- DataGridItem.cs
- SoundPlayerAction.cs
- SmiRequestExecutor.cs
- EpmSourceTree.cs
- XhtmlBasicFormAdapter.cs
- FormatterConverter.cs
- QueryResponse.cs
- AttributeProviderAttribute.cs
- ReferentialConstraint.cs
- SelectorItemAutomationPeer.cs
- Int64.cs
- TextChange.cs
- XmlSchemaElement.cs
- CompositionCommandSet.cs
- SizeAnimationUsingKeyFrames.cs
- MatchAllMessageFilter.cs