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
- ChainOfDependencies.cs
- EntityCollection.cs
- BamlVersionHeader.cs
- RootCodeDomSerializer.cs
- IndexerHelper.cs
- GlobalEventManager.cs
- PerformanceCounter.cs
- EntityDataSourceContainerNameItem.cs
- RotateTransform3D.cs
- TrustSection.cs
- _WebProxyDataBuilder.cs
- Maps.cs
- EventDrivenDesigner.cs
- SqlEnums.cs
- DbgCompiler.cs
- CssStyleCollection.cs
- HtmlHead.cs
- TakeOrSkipQueryOperator.cs
- HttpCapabilitiesBase.cs
- TextAction.cs
- TextStore.cs
- ScrollBar.cs
- NetworkStream.cs
- XslAst.cs
- EnumConverter.cs
- StylusDownEventArgs.cs
- PropertyMap.cs
- objectresult_tresulttype.cs
- HwndHostAutomationPeer.cs
- StorageInfo.cs
- MultiPartWriter.cs
- DrawingVisualDrawingContext.cs
- MutexSecurity.cs
- HwndMouseInputProvider.cs
- OdbcEnvironment.cs
- CriticalHandle.cs
- TouchDevice.cs
- ScrollPattern.cs
- ComAwareEventInfo.cs
- FormViewCommandEventArgs.cs
- XsdDateTime.cs
- PropertyContainer.cs
- UnsafeNativeMethods.cs
- HtmlElementEventArgs.cs
- DataGridRow.cs
- SettingsSection.cs
- XmlWriterTraceListener.cs
- DefaultTraceListener.cs
- TcpTransportManager.cs
- Polyline.cs
- ComplexLine.cs
- InputMethodStateTypeInfo.cs
- EnumerableCollectionView.cs
- LinearQuaternionKeyFrame.cs
- Renderer.cs
- RangeContentEnumerator.cs
- OracleDataReader.cs
- SystemBrushes.cs
- FillErrorEventArgs.cs
- TemplateBaseAction.cs
- WebControl.cs
- SecurityElement.cs
- RuleSettings.cs
- RoleService.cs
- BrowserDefinition.cs
- EntityDesignerBuildProvider.cs
- BaseValidator.cs
- EntityClientCacheEntry.cs
- WebPartEditVerb.cs
- BindingSourceDesigner.cs
- ZipIOExtraFieldElement.cs
- ChangeProcessor.cs
- HashCodeCombiner.cs
- listitem.cs
- FailedToStartupUIException.cs
- ClientFormsIdentity.cs
- CheckoutException.cs
- ParserHooks.cs
- BuildManagerHost.cs
- ProjectionCamera.cs
- ReflectionPermission.cs
- IPGlobalProperties.cs
- FirstQueryOperator.cs
- ListSourceHelper.cs
- EventLogTraceListener.cs
- LiteralControl.cs
- HitTestDrawingContextWalker.cs
- AuthorizationContext.cs
- ILGenerator.cs
- SqlDataReader.cs
- xdrvalidator.cs
- MenuCommand.cs
- ConnectionPoint.cs
- ContentElementAutomationPeer.cs
- SqlReferenceCollection.cs
- StateChangeEvent.cs
- _ListenerRequestStream.cs
- ArrayExtension.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- XmlSignatureManifest.cs