Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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.
//
// ==--==
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
/*==============================================================================
**
** 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- _SSPISessionCache.cs
- _OSSOCK.cs
- RestrictedTransactionalPackage.cs
- BitmapEffectDrawing.cs
- PriorityQueue.cs
- WindowsToolbarAsMenu.cs
- ModuleBuilder.cs
- ViewValidator.cs
- ScaleTransform3D.cs
- DocumentViewerBaseAutomationPeer.cs
- SpellerHighlightLayer.cs
- AddInToken.cs
- SqlWriter.cs
- UmAlQuraCalendar.cs
- MethodBuilderInstantiation.cs
- StringKeyFrameCollection.cs
- SiteMapDataSourceView.cs
- DataControlButton.cs
- recordstate.cs
- ResourceDisplayNameAttribute.cs
- Brush.cs
- SkipQueryOptionExpression.cs
- SelectionGlyph.cs
- CapabilitiesSection.cs
- RenderingEventArgs.cs
- UIAgentRequest.cs
- ToolStripOverflow.cs
- TableRowCollection.cs
- BulletedListEventArgs.cs
- DrawingVisual.cs
- ObjectStateEntryDbDataRecord.cs
- HMACSHA512.cs
- MouseButton.cs
- SchemaNotation.cs
- ConcatQueryOperator.cs
- BamlRecordReader.cs
- COM2EnumConverter.cs
- RegularExpressionValidator.cs
- NetNamedPipeSecurity.cs
- Win32Native.cs
- ActivationArguments.cs
- StringFunctions.cs
- SapiRecoContext.cs
- StyleBamlTreeBuilder.cs
- ETagAttribute.cs
- ContractReference.cs
- DataRowChangeEvent.cs
- ConfigurationPropertyAttribute.cs
- WrappedKeySecurityToken.cs
- StreamReader.cs
- DuplexClientBase.cs
- BoundPropertyEntry.cs
- AutoSizeToolBoxItem.cs
- webproxy.cs
- CodeTypeReferenceCollection.cs
- EventRecord.cs
- StringWriter.cs
- LineGeometry.cs
- SoapExtensionStream.cs
- Error.cs
- AnnotationResourceChangedEventArgs.cs
- LogRestartAreaEnumerator.cs
- SingleResultAttribute.cs
- XmlCDATASection.cs
- DetailsViewRow.cs
- Stylesheet.cs
- _AcceptOverlappedAsyncResult.cs
- Drawing.cs
- SHA384.cs
- MsmqTransportBindingElement.cs
- ServiceReference.cs
- CancellationHandlerDesigner.cs
- BindingNavigator.cs
- SignedXml.cs
- EventToken.cs
- PostBackOptions.cs
- NamespaceEmitter.cs
- FilteredXmlReader.cs
- TypeInformation.cs
- TerminatorSinks.cs
- SuspendDesigner.cs
- PackWebRequest.cs
- DeflateStream.cs
- Opcode.cs
- HtmlInputCheckBox.cs
- AssemblyAssociatedContentFileAttribute.cs
- UnsignedPublishLicense.cs
- DirectoryNotFoundException.cs
- XmlDsigSep2000.cs
- Workspace.cs
- ErrorFormatter.cs
- _BaseOverlappedAsyncResult.cs
- DesignerSerializationOptionsAttribute.cs
- Tuple.cs
- ModulesEntry.cs
- DependencySource.cs
- DataGridViewCellMouseEventArgs.cs
- XmlCodeExporter.cs
- XmlException.cs
- UrlEncodedParameterWriter.cs