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
- SoapSchemaImporter.cs
- ImagingCache.cs
- ExpandSegment.cs
- ExceptionUtil.cs
- ToolboxBitmapAttribute.cs
- BufferedGenericXmlSecurityToken.cs
- RawAppCommandInputReport.cs
- AuthStoreRoleProvider.cs
- CountAggregationOperator.cs
- DropTarget.cs
- TextChangedEventArgs.cs
- Maps.cs
- DataGridViewCellStyleChangedEventArgs.cs
- XsltSettings.cs
- PointUtil.cs
- ListItemParagraph.cs
- StorageBasedPackageProperties.cs
- TwoPhaseCommitProxy.cs
- DoubleKeyFrameCollection.cs
- RadioButton.cs
- NavigatorInput.cs
- GridEntry.cs
- MissingSatelliteAssemblyException.cs
- ImportedNamespaceContextItem.cs
- RelationshipType.cs
- MenuRendererStandards.cs
- Matrix.cs
- RtfControls.cs
- ButtonBase.cs
- WebScriptServiceHostFactory.cs
- ReferenceConverter.cs
- ISAPIApplicationHost.cs
- DSASignatureDeformatter.cs
- SendKeys.cs
- Wrapper.cs
- CollectionEditor.cs
- UnknownBitmapDecoder.cs
- WindowsStartMenu.cs
- CacheHelper.cs
- SHA384Managed.cs
- DataListItemEventArgs.cs
- EventLogEntryCollection.cs
- DebugView.cs
- StorageConditionPropertyMapping.cs
- XmlCountingReader.cs
- Matrix3D.cs
- SqlDataSourceView.cs
- TraceContext.cs
- FillRuleValidation.cs
- OutOfProcStateClientManager.cs
- StateDesigner.LayoutSelectionGlyph.cs
- MemberCollection.cs
- DefaultPrintController.cs
- FontUnit.cs
- IImplicitResourceProvider.cs
- StretchValidation.cs
- XmlUnspecifiedAttribute.cs
- ToolStripDropDownDesigner.cs
- UnaryExpressionHelper.cs
- ConfigsHelper.cs
- GenericAuthenticationEventArgs.cs
- dataobject.cs
- isolationinterop.cs
- ParallelEnumerableWrapper.cs
- QueryContinueDragEvent.cs
- BoolExpr.cs
- CryptoApi.cs
- PanelStyle.cs
- ConcurrentDictionary.cs
- InheritanceUI.cs
- TokenCreationException.cs
- XPathConvert.cs
- HtmlInputSubmit.cs
- SqlDataSourceConnectionPanel.cs
- GC.cs
- HttpBrowserCapabilitiesBase.cs
- WorkflowCreationContext.cs
- _FtpDataStream.cs
- SqlConnectionPoolGroupProviderInfo.cs
- FormViewPageEventArgs.cs
- ByteConverter.cs
- ApplicationManager.cs
- PolyQuadraticBezierSegment.cs
- DebugView.cs
- ConsoleTraceListener.cs
- XmlCountingReader.cs
- LifetimeServices.cs
- RegexRunner.cs
- HTMLTagNameToTypeMapper.cs
- CommandID.cs
- XmlSchemaSet.cs
- X500Name.cs
- GridViewEditEventArgs.cs
- FtpCachePolicyElement.cs
- ReflectTypeDescriptionProvider.cs
- IndicShape.cs
- RemoteHelper.cs
- TableLayout.cs
- RangeBaseAutomationPeer.cs
- KeyGestureValueSerializer.cs