Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / CompilerServices / RuntimeCompatibilityAttribute.cs / 1305376 / 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
- WebBrowserSiteBase.cs
- CoreSwitches.cs
- EmptyQuery.cs
- DescendantBaseQuery.cs
- XmlAttributeCollection.cs
- ConfigXmlComment.cs
- InheritanceAttribute.cs
- Transform3D.cs
- InstanceDescriptor.cs
- MethodCallTranslator.cs
- ItemTypeToolStripMenuItem.cs
- LongValidator.cs
- XmlObjectSerializerContext.cs
- InvalidWorkflowException.cs
- TextFormatter.cs
- Decoder.cs
- EndpointDispatcherTable.cs
- EpmTargetTree.cs
- OdbcCommand.cs
- CustomError.cs
- XamlPoint3DCollectionSerializer.cs
- _CacheStreams.cs
- GenericIdentity.cs
- AssemblyAssociatedContentFileAttribute.cs
- IMembershipProvider.cs
- XmlRawWriterWrapper.cs
- CompilerInfo.cs
- CheckPair.cs
- AddInBase.cs
- ParsedAttributeCollection.cs
- MenuItem.cs
- ContainerActivationHelper.cs
- DeleteCardRequest.cs
- NoneExcludedImageIndexConverter.cs
- MissingFieldException.cs
- VolatileResourceManager.cs
- FormatStringEditor.cs
- ImportCatalogPart.cs
- ScriptResourceHandler.cs
- SvcMapFileSerializer.cs
- LinkButton.cs
- SimpleMailWebEventProvider.cs
- ClientBuildManager.cs
- unsafenativemethodstextservices.cs
- JapaneseLunisolarCalendar.cs
- shaperfactoryquerycachekey.cs
- StreamInfo.cs
- LocationSectionRecord.cs
- SystemNetHelpers.cs
- AuthenticatedStream.cs
- AnnotationAuthorChangedEventArgs.cs
- Int32Converter.cs
- Image.cs
- XmlTypeAttribute.cs
- EdmTypeAttribute.cs
- BaseInfoTable.cs
- DownloadProgressEventArgs.cs
- TypefaceCollection.cs
- CodeNamespaceCollection.cs
- SourceSwitch.cs
- IdnMapping.cs
- TypeResolver.cs
- _DynamicWinsockMethods.cs
- DataServiceQueryProvider.cs
- FixedSOMGroup.cs
- ModifiableIteratorCollection.cs
- CodeTypeConstructor.cs
- CompiledAction.cs
- ISessionStateStore.cs
- KeyEvent.cs
- HelpProvider.cs
- TextContainerHelper.cs
- ContextDataSourceContextData.cs
- Variant.cs
- ProtocolReflector.cs
- FunctionImportMapping.cs
- ResourceDescriptionAttribute.cs
- OutputCacheModule.cs
- JpegBitmapDecoder.cs
- PackUriHelper.cs
- ServicePointManagerElement.cs
- xml.cs
- Thickness.cs
- MultipartIdentifier.cs
- CompositeControl.cs
- DaylightTime.cs
- HMACSHA1.cs
- PrintingPermission.cs
- ItemsChangedEventArgs.cs
- DiscoveryOperationContextExtension.cs
- StrongNameMembershipCondition.cs
- CodePrimitiveExpression.cs
- FieldTemplateFactory.cs
- BinHexDecoder.cs
- SEHException.cs
- MasterPage.cs
- SimpleModelProvider.cs
- WindowsHyperlink.cs
- SelectionProviderWrapper.cs
- CodeTypeConstructor.cs