Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ActiveXHelper.cs
- SafeProcessHandle.cs
- UntypedNullExpression.cs
- TraceLevelHelper.cs
- ContextMenu.cs
- PolyLineSegmentFigureLogic.cs
- CloudCollection.cs
- _LoggingObject.cs
- DragDrop.cs
- BindStream.cs
- securitymgrsite.cs
- UnitySerializationHolder.cs
- ManifestResourceInfo.cs
- OpenTypeCommon.cs
- HotSpot.cs
- TreeNodeMouseHoverEvent.cs
- XpsFilter.cs
- Frame.cs
- UrlRoutingModule.cs
- CollectionViewGroup.cs
- XmlSerializerAssemblyAttribute.cs
- SelectionListDesigner.cs
- HttpCachePolicyBase.cs
- ConfigurationSection.cs
- DependencyObjectType.cs
- OciHandle.cs
- CollectionViewGroup.cs
- ColorBlend.cs
- ChannelSinkStacks.cs
- PreviewKeyDownEventArgs.cs
- ListItemCollection.cs
- ExpandSegmentCollection.cs
- StreamMarshaler.cs
- ByteFacetDescriptionElement.cs
- Attribute.cs
- MessageBox.cs
- UIntPtr.cs
- ToolBarButton.cs
- HideDisabledControlAdapter.cs
- EmptyEnumerator.cs
- Path.cs
- HttpListenerResponse.cs
- XPathNavigatorKeyComparer.cs
- VisualStyleInformation.cs
- TextParagraph.cs
- ToolStripItemCollection.cs
- GlobalId.cs
- COAUTHIDENTITY.cs
- IntranetCredentialPolicy.cs
- ModelItemDictionaryImpl.cs
- DocumentPage.cs
- SQLGuid.cs
- TextEditorMouse.cs
- DataBindingExpressionBuilder.cs
- TransformationRules.cs
- LicFileLicenseProvider.cs
- ResourcePermissionBase.cs
- WorkflowInlining.cs
- Nullable.cs
- PathFigure.cs
- ClientSideQueueItem.cs
- CodeAttributeDeclarationCollection.cs
- SByteConverter.cs
- CardSpaceException.cs
- ThicknessConverter.cs
- FileVersion.cs
- BooleanAnimationUsingKeyFrames.cs
- CustomAttributeBuilder.cs
- FlowLayoutPanelDesigner.cs
- MediaElement.cs
- QuarticEase.cs
- CssClassPropertyAttribute.cs
- EditorResources.cs
- _ServiceNameStore.cs
- BufferModesCollection.cs
- DataPagerCommandEventArgs.cs
- ClassicBorderDecorator.cs
- DataStreamFromComStream.cs
- StorageEntityContainerMapping.cs
- DataTemplateSelector.cs
- BaseCollection.cs
- TypeDelegator.cs
- CopyAction.cs
- CompilerCollection.cs
- SQLChars.cs
- MSAAEventDispatcher.cs
- TextBreakpoint.cs
- ConvertersCollection.cs
- BrowserTree.cs
- ListBoxItemWrapperAutomationPeer.cs
- CheckBoxBaseAdapter.cs
- ThicknessAnimation.cs
- DataListCommandEventArgs.cs
- WebBrowserNavigatingEventHandler.cs
- ObjectKeyFrameCollection.cs
- PageAsyncTaskManager.cs
- XPathCompileException.cs
- SoapFault.cs
- DependencyStoreSurrogate.cs
- NamedPipeAppDomainProtocolHandler.cs