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
- VariableReference.cs
- StatusBar.cs
- SimplePropertyEntry.cs
- XmlToDatasetMap.cs
- WizardDesigner.cs
- TaskExceptionHolder.cs
- AssertFilter.cs
- HitTestDrawingContextWalker.cs
- ArrangedElementCollection.cs
- ConnectionPoint.cs
- XmlNamespaceDeclarationsAttribute.cs
- StorageRoot.cs
- WeakRefEnumerator.cs
- WizardStepCollectionEditor.cs
- NumberFormatInfo.cs
- StrongNameUtility.cs
- ApplicationGesture.cs
- PkcsMisc.cs
- WmpBitmapEncoder.cs
- XsdCachingReader.cs
- BulletDecorator.cs
- Query.cs
- MediaPlayer.cs
- SQLRoleProvider.cs
- MetadataArtifactLoader.cs
- FrameworkTemplate.cs
- PublisherMembershipCondition.cs
- SpellerHighlightLayer.cs
- ExcCanonicalXml.cs
- ToolBarTray.cs
- DBSchemaTable.cs
- WebPartHelpVerb.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- ManagementEventArgs.cs
- SessionState.cs
- TargetException.cs
- SymmetricAlgorithm.cs
- InvalidEnumArgumentException.cs
- SqlBulkCopyColumnMappingCollection.cs
- Internal.cs
- FlowDocumentView.cs
- XmlSchemaSimpleTypeList.cs
- SubpageParagraph.cs
- SafeMILHandle.cs
- RuntimeComponentFilter.cs
- XmlLangPropertyAttribute.cs
- StringKeyFrameCollection.cs
- Condition.cs
- _HeaderInfo.cs
- SqlClientWrapperSmiStream.cs
- Debugger.cs
- TdsParserSafeHandles.cs
- CompiledQueryCacheKey.cs
- Metafile.cs
- WmlObjectListAdapter.cs
- TextBoxAutoCompleteSourceConverter.cs
- ProviderBase.cs
- SigningDialog.cs
- ToolStripPanelRenderEventArgs.cs
- ImageUrlEditor.cs
- XDeferredAxisSource.cs
- PropertyMappingExceptionEventArgs.cs
- RenderDataDrawingContext.cs
- PerformanceCounterPermissionEntryCollection.cs
- EditorBrowsableAttribute.cs
- Variable.cs
- TextTreeUndoUnit.cs
- Events.cs
- DataGridTextBoxColumn.cs
- ObjectConverter.cs
- DomNameTable.cs
- X509Certificate.cs
- HeaderLabel.cs
- HTTPRemotingHandler.cs
- PropertyTabAttribute.cs
- PermissionSetEnumerator.cs
- PermissionSetTriple.cs
- itemelement.cs
- ToolBarPanel.cs
- TypeConverterHelper.cs
- ReferentialConstraint.cs
- UIPermission.cs
- SqlTriggerContext.cs
- TrackingStringDictionary.cs
- Configuration.cs
- FileDialog_Vista.cs
- IconBitmapDecoder.cs
- DecodeHelper.cs
- ArgumentNullException.cs
- OrderToken.cs
- StaticDataManager.cs
- TypeExtensions.cs
- TypeSystem.cs
- GACIdentityPermission.cs
- ExpressionBindings.cs
- PersonalizationStateQuery.cs
- XmlNavigatorFilter.cs
- ClientSettingsStore.cs
- XmlBoundElement.cs
- TreeNodeMouseHoverEvent.cs