Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- LocationUpdates.cs
- UnionCodeGroup.cs
- RootBrowserWindowProxy.cs
- TimeSpanSecondsConverter.cs
- CodeDOMUtility.cs
- StrongNameUtility.cs
- GraphicsContainer.cs
- MimeFormImporter.cs
- ShaderRenderModeValidation.cs
- RayHitTestParameters.cs
- HtmlTextArea.cs
- DBSqlParserTable.cs
- StateMachineSubscriptionManager.cs
- SafeEventLogReadHandle.cs
- FormsAuthentication.cs
- Clock.cs
- DbCommandDefinition.cs
- SettingsPropertyValue.cs
- CustomAttributeBuilder.cs
- SqlConnection.cs
- TextTrailingWordEllipsis.cs
- MultiTouchSystemGestureLogic.cs
- BordersPage.cs
- DllNotFoundException.cs
- WriteFileContext.cs
- PieceDirectory.cs
- MouseEventArgs.cs
- InternalConfigRoot.cs
- PrintControllerWithStatusDialog.cs
- Message.cs
- __Error.cs
- SecurityException.cs
- cryptoapiTransform.cs
- CacheEntry.cs
- ComponentEvent.cs
- DecimalConstantAttribute.cs
- DbCommandTree.cs
- StylusDownEventArgs.cs
- RequestCacheManager.cs
- Roles.cs
- SqlNamer.cs
- UpWmlMobileTextWriter.cs
- QuaternionRotation3D.cs
- OleCmdHelper.cs
- MessageBodyDescription.cs
- TemplateControl.cs
- ContentElement.cs
- HtmlShim.cs
- TrustSection.cs
- CommandLibraryHelper.cs
- Lasso.cs
- Application.cs
- InlineUIContainer.cs
- GC.cs
- GZipStream.cs
- BasicBrowserDialog.designer.cs
- AuthorizationRuleCollection.cs
- TreeNodeCollection.cs
- DataGridViewTextBoxEditingControl.cs
- BindingEntityInfo.cs
- ScanQueryOperator.cs
- PageAdapter.cs
- NotCondition.cs
- RangeEnumerable.cs
- DataServiceStreamResponse.cs
- TypeDelegator.cs
- FileFormatException.cs
- DateTimePicker.cs
- TemplateControlParser.cs
- AssemblyBuilderData.cs
- StackSpiller.cs
- TreeViewHitTestInfo.cs
- BypassElementCollection.cs
- InternalsVisibleToAttribute.cs
- CodeAttributeDeclaration.cs
- ToolStripItemImageRenderEventArgs.cs
- BooleanAnimationBase.cs
- SoapBinding.cs
- SiteMapDataSource.cs
- CredentialManagerDialog.cs
- AsymmetricKeyExchangeDeformatter.cs
- Trigger.cs
- DuplicateWaitObjectException.cs
- Hashtable.cs
- TTSEvent.cs
- ETagAttribute.cs
- DrawingContextWalker.cs
- InfoCardUIAgent.cs
- InputElement.cs
- ArrangedElement.cs
- FontEditor.cs
- WindowsListViewItemCheckBox.cs
- SqlBulkCopy.cs
- ItemCheckEvent.cs
- ToolboxComponentsCreatingEventArgs.cs
- DispatcherHookEventArgs.cs
- IPEndPoint.cs
- ExpressionNormalizer.cs
- URLAttribute.cs
- DoubleStorage.cs