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
- TextContainerHelper.cs
- NativeMethodsCLR.cs
- KnownTypesHelper.cs
- CompressionTransform.cs
- RequestResizeEvent.cs
- ExtensionMethods.cs
- Operand.cs
- ConditionalAttribute.cs
- WizardPanel.cs
- base64Transforms.cs
- Registry.cs
- DetailsViewDeleteEventArgs.cs
- PriorityItem.cs
- CodeDirectionExpression.cs
- UnmanagedMemoryStream.cs
- ButtonChrome.cs
- ResourcePermissionBaseEntry.cs
- EntityClientCacheKey.cs
- TextServicesPropertyRanges.cs
- StreamDocument.cs
- WebPartMenu.cs
- StylusCaptureWithinProperty.cs
- ExpressionPrefixAttribute.cs
- InfiniteTimeSpanConverter.cs
- Visitors.cs
- DragDropManager.cs
- MimeMapping.cs
- PrimaryKeyTypeConverter.cs
- BuildProviderAppliesToAttribute.cs
- Vector3D.cs
- SamlAuthorityBinding.cs
- RegexWorker.cs
- SoapAttributeOverrides.cs
- XamlRtfConverter.cs
- CompositionAdorner.cs
- LOSFormatter.cs
- ColumnBinding.cs
- Drawing.cs
- ExplicitDiscriminatorMap.cs
- TypeElementCollection.cs
- ClockGroup.cs
- FormViewRow.cs
- Executor.cs
- SID.cs
- EventData.cs
- RenderData.cs
- StrokeDescriptor.cs
- ClientProtocol.cs
- OleDbWrapper.cs
- RegexCapture.cs
- Odbc32.cs
- FontFamily.cs
- DefaultProxySection.cs
- ExtendedPropertyDescriptor.cs
- columnmapfactory.cs
- CoTaskMemHandle.cs
- SqlTypeSystemProvider.cs
- XPathNodeInfoAtom.cs
- ResourcePermissionBaseEntry.cs
- FixedSOMPageElement.cs
- CompilerWrapper.cs
- RegionData.cs
- SchemaManager.cs
- SafePEFileHandle.cs
- FieldBuilder.cs
- ToolStripContentPanel.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- DataGridViewBindingCompleteEventArgs.cs
- TextShapeableCharacters.cs
- _NegoState.cs
- InstanceOwner.cs
- TouchPoint.cs
- ProviderBase.cs
- TextTreeInsertUndoUnit.cs
- StringToken.cs
- TypeUtil.cs
- Compiler.cs
- ScrollContentPresenter.cs
- ProjectionQueryOptionExpression.cs
- Schema.cs
- Icon.cs
- ButtonFieldBase.cs
- ProfileService.cs
- MouseBinding.cs
- BindingWorker.cs
- ZipPackage.cs
- XmlMemberMapping.cs
- FigureParagraph.cs
- FileLogRecord.cs
- RequestBringIntoViewEventArgs.cs
- ProtocolsConfigurationHandler.cs
- ChoiceConverter.cs
- EdmTypeAttribute.cs
- DeviceContext2.cs
- DesignerVerbCollection.cs
- DecimalStorage.cs
- MeshGeometry3D.cs
- FontInfo.cs
- ActivityTypeResolver.xaml.cs
- ButtonBaseAutomationPeer.cs