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
- SimpleHandlerFactory.cs
- CodeArrayCreateExpression.cs
- AbstractDataSvcMapFileLoader.cs
- TypeGeneratedEventArgs.cs
- ConditionCollection.cs
- DocumentPaginator.cs
- SoapTypeAttribute.cs
- InheritedPropertyChangedEventArgs.cs
- RegisteredExpandoAttribute.cs
- SelectionBorderGlyph.cs
- Pen.cs
- LineSegment.cs
- ScriptHandlerFactory.cs
- XslCompiledTransform.cs
- IndexedEnumerable.cs
- recordstate.cs
- UrlMappingsSection.cs
- Trace.cs
- DrawingContextDrawingContextWalker.cs
- PropertyEmitter.cs
- FilterableAttribute.cs
- ScriptingScriptResourceHandlerSection.cs
- DataGridTextBoxColumn.cs
- Bidi.cs
- CodeTypeParameter.cs
- UpdateManifestForBrowserApplication.cs
- ViewStateException.cs
- CurrentTimeZone.cs
- SHA512Managed.cs
- FontDriver.cs
- SystemInfo.cs
- PnrpPermission.cs
- DiscoveryDocumentLinksPattern.cs
- OracleParameterCollection.cs
- SplashScreen.cs
- PartitionerStatic.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- Parameter.cs
- _ConnectionGroup.cs
- ExclusiveNamedPipeTransportManager.cs
- ProfileManager.cs
- Compiler.cs
- SchemaElement.cs
- ClaimSet.cs
- ApplySecurityAndSendAsyncResult.cs
- LogicalTreeHelper.cs
- safemediahandle.cs
- DirectoryGroupQuery.cs
- WebHttpEndpoint.cs
- Menu.cs
- GridViewDeletedEventArgs.cs
- ProcessRequestArgs.cs
- JsonCollectionDataContract.cs
- UnmanagedMemoryAccessor.cs
- XmlSchemaSimpleType.cs
- WeakReferenceList.cs
- DataGridViewImageColumn.cs
- BatchParser.cs
- PositiveTimeSpanValidatorAttribute.cs
- ChannelTraceRecord.cs
- OrderedDictionaryStateHelper.cs
- ExecutedRoutedEventArgs.cs
- ToolStripDropDownClosingEventArgs.cs
- EmbeddedMailObject.cs
- PrivilegedConfigurationManager.cs
- DivideByZeroException.cs
- Variant.cs
- TogglePattern.cs
- InputLanguageCollection.cs
- ToolStripMenuItem.cs
- WebPartDescription.cs
- VectorKeyFrameCollection.cs
- PerspectiveCamera.cs
- VersionedStream.cs
- UidManager.cs
- QueryHandler.cs
- HttpsChannelListener.cs
- SettingsPropertyIsReadOnlyException.cs
- grammarelement.cs
- ClientRuntime.cs
- OutputCacheProfile.cs
- UDPClient.cs
- PtsPage.cs
- CustomLineCap.cs
- FormsAuthentication.cs
- CryptographicAttribute.cs
- CallSite.cs
- ClrPerspective.cs
- DodSequenceMerge.cs
- DictionaryEntry.cs
- TreeNodeConverter.cs
- XmlSchemas.cs
- CryptoStream.cs
- SecurityException.cs
- TextSpan.cs
- MTConfigUtil.cs
- ApplicationTrust.cs
- WmiEventSink.cs
- ProofTokenCryptoHandle.cs
- GroupBoxRenderer.cs