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
- ListViewGroupItemCollection.cs
- UrlMappingsModule.cs
- Button.cs
- CodeChecksumPragma.cs
- _WinHttpWebProxyDataBuilder.cs
- validationstate.cs
- ReachFixedDocumentSerializer.cs
- ReachSerializableProperties.cs
- ProxySimple.cs
- AttributedMetaModel.cs
- ModelVisual3D.cs
- Int32AnimationBase.cs
- LoginView.cs
- CodeDirectionExpression.cs
- TextSpan.cs
- TdsParserSessionPool.cs
- Config.cs
- SqlCacheDependencyDatabase.cs
- ChangeTracker.cs
- EventBuilder.cs
- SafeRightsManagementSessionHandle.cs
- DbConnectionStringCommon.cs
- PropertyConverter.cs
- IndexOutOfRangeException.cs
- Base64Decoder.cs
- TableItemStyle.cs
- DataGridViewDataConnection.cs
- CatalogPartChrome.cs
- ChangeConflicts.cs
- Dynamic.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- MappingItemCollection.cs
- XPathDocument.cs
- NamedElement.cs
- ListViewItem.cs
- TransformerInfo.cs
- SecurityKeyUsage.cs
- PixelFormats.cs
- AttributeUsageAttribute.cs
- QuaternionConverter.cs
- SystemSounds.cs
- WriterOutput.cs
- RoleService.cs
- CounterCreationDataCollection.cs
- odbcmetadatacolumnnames.cs
- RegexBoyerMoore.cs
- BindableTemplateBuilder.cs
- FunctionDetailsReader.cs
- CompilerCollection.cs
- Matrix3DValueSerializer.cs
- PageClientProxyGenerator.cs
- VirtualPathExtension.cs
- PackagingUtilities.cs
- XmlCharCheckingWriter.cs
- SelectionList.cs
- SecurityHeaderElementInferenceEngine.cs
- TreeNodeBindingCollection.cs
- DesignerResources.cs
- PropertyItem.cs
- VisualState.cs
- GroupQuery.cs
- WebPartCancelEventArgs.cs
- CodeDirectoryCompiler.cs
- RijndaelCryptoServiceProvider.cs
- CodePrimitiveExpression.cs
- RowBinding.cs
- autovalidator.cs
- NullRuntimeConfig.cs
- Size3D.cs
- DataGridItem.cs
- TypeConverterHelper.cs
- LineGeometry.cs
- ExtendedPropertyCollection.cs
- StringResourceManager.cs
- TaskHelper.cs
- DataServiceProviderMethods.cs
- InvalidOperationException.cs
- Wizard.cs
- TextBoxDesigner.cs
- ExpressionVisitor.cs
- UpdateTranslator.cs
- ToolTipAutomationPeer.cs
- ToolStripDropDownClosedEventArgs.cs
- SQLInt64Storage.cs
- GenerateScriptTypeAttribute.cs
- EventListenerClientSide.cs
- DWriteFactory.cs
- EdmType.cs
- Context.cs
- TextRange.cs
- KeyEventArgs.cs
- DataSourceControlBuilder.cs
- PlanCompilerUtil.cs
- SecureEnvironment.cs
- prompt.cs
- ToolStripDropDownItem.cs
- ProviderUtil.cs
- XmlWrappingReader.cs
- X509CertificateClaimSet.cs
- DoubleLinkList.cs