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
- Menu.cs
- StructuralCache.cs
- listviewsubitemcollectioneditor.cs
- DataGridViewHeaderCell.cs
- DataColumnSelectionConverter.cs
- Util.cs
- ProfileParameter.cs
- OleDbReferenceCollection.cs
- WebReferenceOptions.cs
- ConnectorDragDropGlyph.cs
- RegexParser.cs
- ResponseStream.cs
- Attributes.cs
- MarshalDirectiveException.cs
- EncoderParameter.cs
- PropertyChangedEventArgs.cs
- CancellationToken.cs
- BitmapEffectvisualstate.cs
- WebBrowser.cs
- MaskDesignerDialog.cs
- TextElementCollectionHelper.cs
- ConfigurationCollectionAttribute.cs
- HMACSHA256.cs
- SignedPkcs7.cs
- DeadCharTextComposition.cs
- DbDataReader.cs
- HostedElements.cs
- MsmqIntegrationSecurityElement.cs
- HttpServerVarsCollection.cs
- SendingRequestEventArgs.cs
- NotImplementedException.cs
- UpdateManifestForBrowserApplication.cs
- RoleGroupCollection.cs
- CachedRequestParams.cs
- ColorAnimationBase.cs
- MailSettingsSection.cs
- RenderContext.cs
- Debugger.cs
- SchemaCollectionPreprocessor.cs
- XamlBrushSerializer.cs
- LinearQuaternionKeyFrame.cs
- KeyInstance.cs
- DefaultPropertyAttribute.cs
- CheckPair.cs
- WebPartManager.cs
- VSWCFServiceContractGenerator.cs
- DrawingCollection.cs
- Matrix3DConverter.cs
- CustomSignedXml.cs
- PointF.cs
- WindowsRegion.cs
- QueryReaderSettings.cs
- MgmtConfigurationRecord.cs
- TextOnlyOutput.cs
- RenderData.cs
- ListSortDescriptionCollection.cs
- WindowsImpersonationContext.cs
- Privilege.cs
- GraphicsPathIterator.cs
- LogFlushAsyncResult.cs
- SequentialOutput.cs
- ToolBarButtonClickEvent.cs
- AppModelKnownContentFactory.cs
- MexServiceChannelBuilder.cs
- BorderGapMaskConverter.cs
- Memoizer.cs
- StylusDownEventArgs.cs
- DataGridTextColumn.cs
- EntityViewContainer.cs
- StringPropertyBuilder.cs
- TextContainerHelper.cs
- UniqueID.cs
- Substitution.cs
- Evaluator.cs
- mactripleDES.cs
- MouseCaptureWithinProperty.cs
- FacetDescriptionElement.cs
- XpsImage.cs
- ActiveDesignSurfaceEvent.cs
- ServiceInfo.cs
- WindowsTreeView.cs
- mansign.cs
- LinkUtilities.cs
- SqlCacheDependencyDatabaseCollection.cs
- Listbox.cs
- SmiEventStream.cs
- GeneralTransformCollection.cs
- ConnectAlgorithms.cs
- OperationResponse.cs
- StorageRoot.cs
- DataBinder.cs
- RegexWorker.cs
- HostingPreferredMapPath.cs
- DataGridViewButtonColumn.cs
- CodeBlockBuilder.cs
- DomNameTable.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- PropertyMap.cs
- OdbcPermission.cs
- ProcessInputEventArgs.cs