Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClientRequest.cs
- XmlAttributeProperties.cs
- Module.cs
- ToolBarPanel.cs
- elementinformation.cs
- FontInfo.cs
- RegexTree.cs
- XmlHierarchyData.cs
- SoapHeaderAttribute.cs
- BamlTreeNode.cs
- WebPartVerb.cs
- TemplateControlParser.cs
- StringExpressionSet.cs
- CreateInstanceBinder.cs
- CapabilitiesState.cs
- Canvas.cs
- XamlPathDataSerializer.cs
- RealProxy.cs
- Pair.cs
- ProcessModelInfo.cs
- XmlBinaryReader.cs
- NameValuePermission.cs
- XamlToRtfParser.cs
- PageStatePersister.cs
- XmlCollation.cs
- DrawingGroupDrawingContext.cs
- SoapSchemaImporter.cs
- AQNBuilder.cs
- WebPartConnectionsCloseVerb.cs
- HttpWriter.cs
- SiteMapSection.cs
- HttpValueCollection.cs
- ListSortDescription.cs
- HtmlEmptyTagControlBuilder.cs
- MergeFilterQuery.cs
- PropertyKey.cs
- StorageAssociationTypeMapping.cs
- EntityDataSource.cs
- TransportElement.cs
- Transform3D.cs
- TextRunCache.cs
- Header.cs
- Attributes.cs
- CultureMapper.cs
- ToolBarTray.cs
- ClipboardProcessor.cs
- NeutralResourcesLanguageAttribute.cs
- DbProviderFactory.cs
- OutputCacheSection.cs
- SpeechDetectedEventArgs.cs
- ValidationEventArgs.cs
- XamlToRtfWriter.cs
- PropertyDescriptorComparer.cs
- TextFormatterContext.cs
- PointConverter.cs
- AlphabeticalEnumConverter.cs
- LinqDataSourceEditData.cs
- BaseTransportHeaders.cs
- TTSEngineProxy.cs
- ConnectionsZoneAutoFormat.cs
- SplashScreenNativeMethods.cs
- ClientBuildManagerCallback.cs
- safesecurityhelperavalon.cs
- DataGridViewCellStyle.cs
- ItemContainerGenerator.cs
- SoapInteropTypes.cs
- SelectionListDesigner.cs
- PublisherMembershipCondition.cs
- RemotingException.cs
- ProcessRequestAsyncResult.cs
- HashHelper.cs
- PointLightBase.cs
- Button.cs
- XmlJsonWriter.cs
- DocumentGridContextMenu.cs
- ContentWrapperAttribute.cs
- ListViewPagedDataSource.cs
- clipboard.cs
- Menu.cs
- FixedSOMSemanticBox.cs
- AspProxy.cs
- XmlILConstructAnalyzer.cs
- COSERVERINFO.cs
- DataGridViewCellCollection.cs
- StatusBarDrawItemEvent.cs
- SystemBrushes.cs
- CqlLexerHelpers.cs
- SafeRightsManagementHandle.cs
- SchemaNamespaceManager.cs
- ReliableSessionElement.cs
- WebHttpBehavior.cs
- StackSpiller.Temps.cs
- ColorKeyFrameCollection.cs
- XmlReaderSettings.cs
- OverflowException.cs
- XamlParser.cs
- TrimSurroundingWhitespaceAttribute.cs
- Control.cs
- DescendantOverDescendantQuery.cs
- PointUtil.cs