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
- ContextMenu.cs
- DescendantOverDescendantQuery.cs
- XPathMessageContext.cs
- FixedSOMPage.cs
- validationstate.cs
- UIElementCollection.cs
- HttpCachePolicy.cs
- DataObject.cs
- ContourSegment.cs
- DefaultValidator.cs
- WorkflowMarkupSerializerMapping.cs
- AddIn.cs
- CurrencyManager.cs
- XmlElementCollection.cs
- Pts.cs
- StackOverflowException.cs
- EntityRecordInfo.cs
- GestureRecognizer.cs
- InvokeWebService.cs
- WeakRefEnumerator.cs
- CollectionViewGroupRoot.cs
- PriorityQueue.cs
- CacheSection.cs
- StringConcat.cs
- SymmetricAlgorithm.cs
- ObjectSet.cs
- DrawingGroup.cs
- Policy.cs
- DesigntimeLicenseContext.cs
- SecurityRuntime.cs
- mediaeventargs.cs
- ArraySubsetEnumerator.cs
- TreePrinter.cs
- Transactions.cs
- StylusPlugInCollection.cs
- Parser.cs
- InstanceNormalEvent.cs
- PerformanceCounterManager.cs
- SessionStateUtil.cs
- Transform3D.cs
- RSACryptoServiceProvider.cs
- NotFiniteNumberException.cs
- UserUseLicenseDictionaryLoader.cs
- DependencyPropertyChangedEventArgs.cs
- Choices.cs
- XmlUtil.cs
- DbTransaction.cs
- HtmlAnchor.cs
- WebPartAuthorizationEventArgs.cs
- EncodingTable.cs
- SqlMethods.cs
- CheckableControlBaseAdapter.cs
- LookupBindingPropertiesAttribute.cs
- PageParser.cs
- HtmlTableCell.cs
- MsmqBindingBase.cs
- SByte.cs
- SqlServer2KCompatibilityAnnotation.cs
- RtfNavigator.cs
- ImportContext.cs
- MemoryPressure.cs
- DataService.cs
- DocumentXPathNavigator.cs
- PieceNameHelper.cs
- DecodeHelper.cs
- GetWinFXPath.cs
- TraceContextRecord.cs
- HashHelper.cs
- SqlDelegatedTransaction.cs
- Registry.cs
- OSEnvironmentHelper.cs
- ADMembershipUser.cs
- InputScopeNameConverter.cs
- SafeProcessHandle.cs
- MaterialGroup.cs
- Monitor.cs
- VerificationException.cs
- ValueTypeFixupInfo.cs
- ClosureBinding.cs
- TransformerTypeCollection.cs
- FixedSOMFixedBlock.cs
- EndpointAddressAugust2004.cs
- DBCommand.cs
- SchemaSetCompiler.cs
- selecteditemcollection.cs
- ModelUIElement3D.cs
- CompositeDataBoundControl.cs
- FunctionDescription.cs
- InputGestureCollection.cs
- RuleSettings.cs
- CompilerGeneratedAttribute.cs
- BoundPropertyEntry.cs
- ObsoleteAttribute.cs
- RegexCompilationInfo.cs
- CategoryNameCollection.cs
- CompModSwitches.cs
- EventLogEntry.cs
- DataGridViewTextBoxEditingControl.cs
- ViewPort3D.cs
- SchemaSetCompiler.cs