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
- DataSetMappper.cs
- UTF32Encoding.cs
- HuffCodec.cs
- EntityViewContainer.cs
- PermissionToken.cs
- FileDialogCustomPlacesCollection.cs
- HttpCachePolicy.cs
- AmbientValueAttribute.cs
- SqlRecordBuffer.cs
- ExtractorMetadata.cs
- Hash.cs
- FileLevelControlBuilderAttribute.cs
- TypeDescriptorFilterService.cs
- XmlSchemaIdentityConstraint.cs
- AppDomain.cs
- MessageSmuggler.cs
- OdbcConnectionOpen.cs
- InfoCardUIAgent.cs
- StringOutput.cs
- DoubleAnimationClockResource.cs
- GlobalProxySelection.cs
- KnownColorTable.cs
- DependencyPropertyChangedEventArgs.cs
- BackgroundFormatInfo.cs
- MembershipUser.cs
- ExpressionHelper.cs
- DrawingContextWalker.cs
- XmlSchemaValidator.cs
- EntryPointNotFoundException.cs
- WindowsSecurityTokenAuthenticator.cs
- WindowsStatusBar.cs
- Guid.cs
- RoutedEventValueSerializer.cs
- BindingExpression.cs
- Padding.cs
- XPathNodeIterator.cs
- ILGenerator.cs
- NetNamedPipeSecurityElement.cs
- IntegerValidator.cs
- XmlHierarchyData.cs
- Asn1IntegerConverter.cs
- StyleBamlTreeBuilder.cs
- ProfileBuildProvider.cs
- PreProcessInputEventArgs.cs
- StrongNameMembershipCondition.cs
- RectKeyFrameCollection.cs
- ProtocolsConfigurationEntry.cs
- ListDictionary.cs
- WorkItem.cs
- Identifier.cs
- StylusPointDescription.cs
- InternalsVisibleToAttribute.cs
- SecurityElement.cs
- XamlWriter.cs
- DtdParser.cs
- LoadWorkflowCommand.cs
- HtmlControlDesigner.cs
- XmlHelper.cs
- IndexedGlyphRun.cs
- MachineKeySection.cs
- HGlobalSafeHandle.cs
- XmlSchemaCompilationSettings.cs
- Icon.cs
- DiagnosticsConfiguration.cs
- TableRowsCollectionEditor.cs
- DeclarationUpdate.cs
- SerializeAbsoluteContext.cs
- WmlControlAdapter.cs
- MultiSelectRootGridEntry.cs
- StringCollection.cs
- Action.cs
- RemotingClientProxy.cs
- Attribute.cs
- Mutex.cs
- ImageList.cs
- StructuralCache.cs
- SocketElement.cs
- Double.cs
- StandardMenuStripVerb.cs
- LongSumAggregationOperator.cs
- SafeRightsManagementPubHandle.cs
- MdiWindowListItemConverter.cs
- DocobjHost.cs
- DataGridViewHeaderCell.cs
- DataSourceCache.cs
- PointConverter.cs
- TextContainer.cs
- GeneralTransform.cs
- AdPostCacheSubstitution.cs
- DataGridViewAutoSizeModeEventArgs.cs
- KernelTypeValidation.cs
- WindowInteractionStateTracker.cs
- EmptyEnumerable.cs
- SchemaUtility.cs
- DataGridViewCellStyle.cs
- LocalizationComments.cs
- WebDisplayNameAttribute.cs
- Int32Collection.cs
- smtppermission.cs
- RuntimeConfig.cs