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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CapabilitiesSection.cs
- XmlSchemaAnnotated.cs
- Logging.cs
- ElementNotEnabledException.cs
- ShimAsPublicXamlType.cs
- Win32Exception.cs
- StreamInfo.cs
- ClrPerspective.cs
- LabelAutomationPeer.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- PolicyConversionContext.cs
- ItemContainerPattern.cs
- SocketInformation.cs
- LoginNameDesigner.cs
- XmlComment.cs
- ScriptIgnoreAttribute.cs
- HashSetEqualityComparer.cs
- HTMLTextWriter.cs
- OdbcCommand.cs
- IFlowDocumentViewer.cs
- RowsCopiedEventArgs.cs
- HostingEnvironmentSection.cs
- BrushProxy.cs
- DataGridPreparingCellForEditEventArgs.cs
- PersonalizationProviderHelper.cs
- webclient.cs
- DataGridViewIntLinkedList.cs
- SqlServer2KCompatibilityAnnotation.cs
- DataGridHeaderBorder.cs
- DataServiceContext.cs
- DataControlLinkButton.cs
- Filter.cs
- ParameterModifier.cs
- MulticastOption.cs
- DefaultAuthorizationContext.cs
- Vector3DKeyFrameCollection.cs
- DataGridViewHitTestInfo.cs
- ColorDialog.cs
- IResourceProvider.cs
- DataShape.cs
- TemplateFactory.cs
- AnonymousIdentificationModule.cs
- UserControl.cs
- EdgeModeValidation.cs
- GeneralTransform3DGroup.cs
- Thread.cs
- IndexObject.cs
- ConfigurationPropertyCollection.cs
- HtmlControlDesigner.cs
- EventEntry.cs
- PTConverter.cs
- ReplyChannel.cs
- Utils.cs
- SettingsAttributes.cs
- AdapterSwitches.cs
- DateTimeUtil.cs
- WorkflowQueue.cs
- ArrayTypeMismatchException.cs
- AttributeUsageAttribute.cs
- TextTreeRootNode.cs
- FullTextLine.cs
- CompilerParameters.cs
- NavigateEvent.cs
- CapiHashAlgorithm.cs
- DrawTreeNodeEventArgs.cs
- WorkflowControlClient.cs
- TransformationRules.cs
- InternalEnumValidator.cs
- SymbolMethod.cs
- SqlEnums.cs
- NoResizeSelectionBorderGlyph.cs
- MarginCollapsingState.cs
- ViewCellSlot.cs
- SizeFConverter.cs
- TrustLevelCollection.cs
- HttpCookie.cs
- LinkArea.cs
- HTTPNotFoundHandler.cs
- DataContractSet.cs
- PeerInvitationResponse.cs
- DesignerCommandAdapter.cs
- LinearKeyFrames.cs
- SqlParameterizer.cs
- Compensation.cs
- DataGridPagingPage.cs
- SchemaImporter.cs
- MissingMemberException.cs
- FloatMinMaxAggregationOperator.cs
- TextFormatterHost.cs
- SamlAction.cs
- EnterpriseServicesHelper.cs
- DtrList.cs
- Knowncolors.cs
- SafeSerializationManager.cs
- WeakRefEnumerator.cs
- CreateUserErrorEventArgs.cs
- TemplateFactory.cs
- EntityDataSourceReferenceGroup.cs
- PrimaryKeyTypeConverter.cs
- HttpDebugHandler.cs