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
- TextFormatterImp.cs
- SafeLibraryHandle.cs
- XsltContext.cs
- DrawToolTipEventArgs.cs
- InheritablePropertyChangeInfo.cs
- TraceRecord.cs
- WsdlInspector.cs
- ColorAnimation.cs
- ListBoxItemAutomationPeer.cs
- NameTable.cs
- SqlRowUpdatingEvent.cs
- ConditionalDesigner.cs
- SEHException.cs
- ImmutableClientRuntime.cs
- ErrorTableItemStyle.cs
- TabItemWrapperAutomationPeer.cs
- GlyphInfoList.cs
- ParagraphVisual.cs
- CustomError.cs
- WebPartConnectionsDisconnectVerb.cs
- HelpHtmlBuilder.cs
- MachineSettingsSection.cs
- MemberDomainMap.cs
- StoragePropertyMapping.cs
- TextBox.cs
- CompositeKey.cs
- BypassElement.cs
- HotSpotCollection.cs
- SqlNotificationRequest.cs
- DomNameTable.cs
- SerializationSectionGroup.cs
- Substitution.cs
- HttpResponseHeader.cs
- InfoCardSchemas.cs
- PageOutputQuality.cs
- TrackingLocationCollection.cs
- OdbcConnectionOpen.cs
- ValueConversionAttribute.cs
- _DisconnectOverlappedAsyncResult.cs
- _DomainName.cs
- PointAnimationClockResource.cs
- BinaryExpression.cs
- IriParsingElement.cs
- PopupControlService.cs
- DnsPermission.cs
- LoginName.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- StringStorage.cs
- CellTreeNode.cs
- PngBitmapEncoder.cs
- ErrorWebPart.cs
- WorkflowDesignerColors.cs
- FormsIdentity.cs
- XmlEncoding.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- FastEncoderWindow.cs
- XPathNavigator.cs
- Parser.cs
- IItemContainerGenerator.cs
- SourceFilter.cs
- ExceptionUtil.cs
- CommonRemoteMemoryBlock.cs
- SQLInt16Storage.cs
- UTF32Encoding.cs
- EventLogPermissionEntryCollection.cs
- RC2.cs
- DateTimePicker.cs
- Profiler.cs
- IndicCharClassifier.cs
- WorkflowDesignerColors.cs
- HttpWebResponse.cs
- ScrollBarAutomationPeer.cs
- IChannel.cs
- DocumentXmlWriter.cs
- SrgsDocument.cs
- GridItem.cs
- TextBoxRenderer.cs
- DbDataRecord.cs
- TabItemWrapperAutomationPeer.cs
- FileVersionInfo.cs
- ControlCachePolicy.cs
- SystemResourceHost.cs
- PowerModeChangedEventArgs.cs
- TextRangeSerialization.cs
- XmlSchemaNotation.cs
- SmtpDigestAuthenticationModule.cs
- CroppedBitmap.cs
- EdmRelationshipRoleAttribute.cs
- CurrentTimeZone.cs
- ExtensionSimplifierMarkupObject.cs
- BridgeDataReader.cs
- FixedElement.cs
- RelationalExpressions.cs
- DaylightTime.cs
- DataSet.cs
- SystemInformation.cs
- ConfigsHelper.cs
- MsmqTransportSecurity.cs
- DoubleLinkListEnumerator.cs
- Point3D.cs