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
- RangeValuePattern.cs
- GeneralTransform3DGroup.cs
- BitmapPalettes.cs
- EmptyStringExpandableObjectConverter.cs
- LoginName.cs
- TransactionTraceIdentifier.cs
- ProjectionPlan.cs
- SoundPlayer.cs
- COSERVERINFO.cs
- IpcManager.cs
- SQLBoolean.cs
- MessageQueue.cs
- AggregateNode.cs
- TimeEnumHelper.cs
- NameValueSectionHandler.cs
- OraclePermission.cs
- WhitespaceReader.cs
- DataServiceContext.cs
- RightsManagementInformation.cs
- DelegateBodyWriter.cs
- Int32Storage.cs
- RedirectionProxy.cs
- ToolStripContentPanel.cs
- PenContext.cs
- TextServicesProperty.cs
- CodeMethodMap.cs
- RequestCachePolicy.cs
- SR.cs
- WebPartVerbsEventArgs.cs
- InProcStateClientManager.cs
- Certificate.cs
- RefreshEventArgs.cs
- AdornedElementPlaceholder.cs
- SoapServerMethod.cs
- Quad.cs
- OleAutBinder.cs
- VerbConverter.cs
- rsa.cs
- ContentPathSegment.cs
- HttpCachePolicyElement.cs
- InheritanceUI.cs
- TryExpression.cs
- DataGridViewRowsAddedEventArgs.cs
- AspNetPartialTrustHelpers.cs
- PassportAuthenticationEventArgs.cs
- UInt64Storage.cs
- ping.cs
- WindowsRegion.cs
- Imaging.cs
- Type.cs
- StateChangeEvent.cs
- StreamSecurityUpgradeAcceptorBase.cs
- FrameworkPropertyMetadata.cs
- LinkArea.cs
- ToolStripOverflow.cs
- HtmlControlPersistable.cs
- InkCollectionBehavior.cs
- SqlExpressionNullability.cs
- TdsParserStateObject.cs
- LogExtentCollection.cs
- SimpleBitVector32.cs
- BaseAppDomainProtocolHandler.cs
- BindingNavigator.cs
- ConstraintCollection.cs
- InputLangChangeEvent.cs
- NonClientArea.cs
- RadialGradientBrush.cs
- WebConfigurationFileMap.cs
- DataGridRowEventArgs.cs
- ObjectDataSourceMethodEventArgs.cs
- PixelShader.cs
- FontStyle.cs
- UniformGrid.cs
- XmlSerializationReader.cs
- PriorityQueue.cs
- VerificationException.cs
- BitHelper.cs
- ScrollChrome.cs
- DocumentSchemaValidator.cs
- DataGridAddNewRow.cs
- BulletedListEventArgs.cs
- FixedSOMContainer.cs
- ImmutableObjectAttribute.cs
- FormConverter.cs
- MultiBinding.cs
- COAUTHINFO.cs
- ActivityStateRecord.cs
- RSAPKCS1SignatureDeformatter.cs
- ImportContext.cs
- ConfigurationManagerInternalFactory.cs
- InplaceBitmapMetadataWriter.cs
- Material.cs
- BamlLocalizabilityResolver.cs
- DeviceSpecificDialogCachedState.cs
- HtmlAnchor.cs
- PageContent.cs
- MatrixCamera.cs
- ExceptionDetail.cs
- FieldTemplateFactory.cs
- WindowsListViewItemStartMenu.cs