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
- DrawListViewColumnHeaderEventArgs.cs
- CqlParserHelpers.cs
- HtmlElement.cs
- LongPath.cs
- AppDomain.cs
- XsltFunctions.cs
- SynchronizedKeyedCollection.cs
- PathData.cs
- XmlSchemaExternal.cs
- Point3DConverter.cs
- FrameworkElementFactory.cs
- PlainXmlWriter.cs
- FontStyleConverter.cs
- TargetParameterCountException.cs
- DetailsViewInsertEventArgs.cs
- ThousandthOfEmRealDoubles.cs
- MeasureItemEvent.cs
- TypeSystemHelpers.cs
- TextSegment.cs
- SecurityChannelListener.cs
- DataGridViewDataErrorEventArgs.cs
- SessionStateItemCollection.cs
- Queue.cs
- BufferedGraphicsManager.cs
- EpmSourceTree.cs
- GetLedgerRequest.cs
- PackWebResponse.cs
- MonthChangedEventArgs.cs
- MULTI_QI.cs
- RpcCryptoRequest.cs
- SocketManager.cs
- TableParagraph.cs
- ReplacementText.cs
- IdSpace.cs
- ToolStripDropTargetManager.cs
- RangeValueProviderWrapper.cs
- SoapProtocolReflector.cs
- ToolStripPanelCell.cs
- BmpBitmapDecoder.cs
- DropShadowBitmapEffect.cs
- ResourceDescriptionAttribute.cs
- AnonymousIdentificationSection.cs
- Vector3DConverter.cs
- OperationAbortedException.cs
- Monitor.cs
- TileBrush.cs
- MulticastOption.cs
- MouseDevice.cs
- TimeSpanParse.cs
- HtmlImage.cs
- BasicExpandProvider.cs
- ScriptComponentDescriptor.cs
- CategoryAttribute.cs
- XPathNodeHelper.cs
- ChangePassword.cs
- ScriptRegistrationManager.cs
- SettingsAttributeDictionary.cs
- FileLevelControlBuilderAttribute.cs
- SqlTriggerContext.cs
- ListBoxChrome.cs
- IsolatedStorageFileStream.cs
- StateMachineTimers.cs
- TextTreeObjectNode.cs
- BinaryParser.cs
- RequestCachePolicy.cs
- SoapAttributeOverrides.cs
- ResolveNameEventArgs.cs
- DynamicFilterExpression.cs
- BypassElementCollection.cs
- EntityAdapter.cs
- SqlConnection.cs
- RawAppCommandInputReport.cs
- DebugView.cs
- HitTestParameters.cs
- infer.cs
- SecurityException.cs
- XmlLanguageConverter.cs
- DocumentPageView.cs
- EntityCommand.cs
- AnchoredBlock.cs
- SqlInternalConnection.cs
- BaseProcessor.cs
- PrivilegeNotHeldException.cs
- SortExpressionBuilder.cs
- ResXResourceWriter.cs
- WindowsSolidBrush.cs
- DataComponentNameHandler.cs
- SubMenuStyleCollection.cs
- Delegate.cs
- OdbcStatementHandle.cs
- SmiMetaDataProperty.cs
- EventLog.cs
- DrawingVisualDrawingContext.cs
- MetadataArtifactLoader.cs
- _ShellExpression.cs
- PrinterSettings.cs
- DataColumnChangeEvent.cs
- OperationResponse.cs
- XmlWrappingReader.cs
- TextWriterTraceListener.cs