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
- UrlAuthorizationModule.cs
- LoadGrammarCompletedEventArgs.cs
- IIS7WorkerRequest.cs
- WindowsSysHeader.cs
- ClientSession.cs
- CompilerParameters.cs
- XpsFixedDocumentReaderWriter.cs
- DesigntimeLicenseContext.cs
- WindowsTab.cs
- StorageModelBuildProvider.cs
- SqlTypeSystemProvider.cs
- HotCommands.cs
- EntityReference.cs
- ProvidePropertyAttribute.cs
- SectionVisual.cs
- Helpers.cs
- WaitHandle.cs
- XpsTokenContext.cs
- IntSecurity.cs
- SendMailErrorEventArgs.cs
- XmlReflectionImporter.cs
- VirtualPath.cs
- LogicalExpressionTypeConverter.cs
- AQNBuilder.cs
- StructureChangedEventArgs.cs
- Utils.cs
- TrustLevelCollection.cs
- EventTrigger.cs
- Encoder.cs
- HuffmanTree.cs
- SoapMessage.cs
- BatchParser.cs
- SafeNativeMethods.cs
- StrokeNode.cs
- XmlNamespaceMapping.cs
- RawUIStateInputReport.cs
- DateTimeValueSerializerContext.cs
- ForeignKeyConstraint.cs
- AnimationTimeline.cs
- RowBinding.cs
- HostingPreferredMapPath.cs
- XamlSerializerUtil.cs
- CorrelationRequestContext.cs
- MethodImplAttribute.cs
- GridViewDeletedEventArgs.cs
- ScriptingJsonSerializationSection.cs
- XmlnsDictionary.cs
- PropertyChange.cs
- LambdaCompiler.Generated.cs
- ModuleBuilder.cs
- FrameworkElementFactoryMarkupObject.cs
- VariableQuery.cs
- StylusPointPropertyId.cs
- nulltextcontainer.cs
- PanelDesigner.cs
- InfoCardClaimCollection.cs
- Helpers.cs
- Pkcs9Attribute.cs
- ExtenderControl.cs
- DefaultAssemblyResolver.cs
- RemotingServices.cs
- SecurityTokenException.cs
- DocumentReferenceCollection.cs
- lengthconverter.cs
- ColumnResizeAdorner.cs
- RegexInterpreter.cs
- X509PeerCertificateElement.cs
- SiteMapHierarchicalDataSourceView.cs
- StrongNameIdentityPermission.cs
- PageContentCollection.cs
- DesignTimeVisibleAttribute.cs
- Point3DValueSerializer.cs
- ConfigUtil.cs
- ThreadStateException.cs
- ProgressBarRenderer.cs
- SpeechDetectedEventArgs.cs
- IisTraceWebEventProvider.cs
- ClientSideProviderDescription.cs
- CompositionAdorner.cs
- TypeDescriptorContext.cs
- DBCSCodePageEncoding.cs
- SqlInternalConnectionTds.cs
- WorkflowMarkupSerializerMapping.cs
- WebPartEditorApplyVerb.cs
- DesignerObjectListAdapter.cs
- ImageDrawing.cs
- CFStream.cs
- StyleSheet.cs
- TypeBuilder.cs
- CorePropertiesFilter.cs
- ContractUtils.cs
- DbProviderFactory.cs
- BinaryObjectReader.cs
- PropertySourceInfo.cs
- TreeNodeStyleCollection.cs
- XsltLibrary.cs
- TextTreeInsertUndoUnit.cs
- _UriSyntax.cs
- TextEffect.cs
- CommandHelpers.cs