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
- GPPOINTF.cs
- NodeInfo.cs
- WebServiceEnumData.cs
- MemoryMappedViewStream.cs
- SymmetricAlgorithm.cs
- StopStoryboard.cs
- UIElement.cs
- XmlUrlResolver.cs
- WebServiceEnumData.cs
- ChannelCredentials.cs
- EntityDataSourceContextCreatingEventArgs.cs
- SQLMembershipProvider.cs
- XmlWrappingReader.cs
- SineEase.cs
- ObjectRef.cs
- ListControl.cs
- DataGridViewButtonCell.cs
- EndpointInfo.cs
- XmlDataDocument.cs
- Keyboard.cs
- ConstraintEnumerator.cs
- FontStretchConverter.cs
- Rule.cs
- DataObject.cs
- Base64Decoder.cs
- BitArray.cs
- SqlInfoMessageEvent.cs
- TableLayoutCellPaintEventArgs.cs
- IdentitySection.cs
- FormsAuthenticationTicket.cs
- BufferedReadStream.cs
- TabControlEvent.cs
- ObjectItemAttributeAssemblyLoader.cs
- FontSource.cs
- Compiler.cs
- CheckBoxBaseAdapter.cs
- StateDesigner.TransitionInfo.cs
- QilParameter.cs
- InOutArgumentConverter.cs
- TextWriterTraceListener.cs
- ColorAnimationBase.cs
- WebBrowserUriTypeConverter.cs
- EntityDataSourceViewSchema.cs
- XmlLangPropertyAttribute.cs
- EnvelopedPkcs7.cs
- UrlPath.cs
- RemotingHelper.cs
- OrderPreservingMergeHelper.cs
- SqlUtils.cs
- PropertyTabChangedEvent.cs
- RightsManagementEncryptionTransform.cs
- UInt32.cs
- PopupRootAutomationPeer.cs
- DataServiceBehavior.cs
- KeyFrames.cs
- InternalUserCancelledException.cs
- GetPageNumberCompletedEventArgs.cs
- Visitor.cs
- XmlRawWriter.cs
- HiddenFieldPageStatePersister.cs
- PenThreadWorker.cs
- RemoteWebConfigurationHostServer.cs
- ReferencedType.cs
- VirtualDirectoryMappingCollection.cs
- PerformanceCounterCategory.cs
- ToolStripSplitButton.cs
- DefaultBinder.cs
- DetailsViewDeletedEventArgs.cs
- BaseDataList.cs
- SystemColors.cs
- ObjectManager.cs
- UriParserTemplates.cs
- KeyPressEvent.cs
- CharacterBuffer.cs
- HttpPostProtocolImporter.cs
- MultipartIdentifier.cs
- ThreadAttributes.cs
- RuntimeConfigurationRecord.cs
- WpfPayload.cs
- FlowPosition.cs
- DataFormats.cs
- Gdiplus.cs
- WebPartTracker.cs
- ErrorWebPart.cs
- ImpersonationContext.cs
- RightsManagementEncryptionTransform.cs
- CustomMenuItemCollection.cs
- MULTI_QI.cs
- MenuEventArgs.cs
- ListViewTableRow.cs
- SoapAttributeOverrides.cs
- XmlQueryType.cs
- WmpBitmapEncoder.cs
- DynamicUpdateCommand.cs
- DbQueryCommandTree.cs
- CachedBitmap.cs
- regiisutil.cs
- MonitorWrapper.cs
- SamlDoNotCacheCondition.cs
- ConfigurationException.cs