Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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. // // ==--== //////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////// /*============================================================================== ** ** 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
- UrlAuthorizationModule.cs
- ObjectListShowCommandsEventArgs.cs
- WsatProxy.cs
- ProfileGroupSettings.cs
- CommonProperties.cs
- XmlAttributeCollection.cs
- TrustLevel.cs
- WebPartVerbsEventArgs.cs
- Mutex.cs
- QueryableDataSourceHelper.cs
- AudioSignalProblemOccurredEventArgs.cs
- TypedMessageConverter.cs
- ContentValidator.cs
- ActiveDocumentEvent.cs
- Transform3D.cs
- XmlSerializerSection.cs
- RoamingStoreFileUtility.cs
- AppLevelCompilationSectionCache.cs
- MissingMethodException.cs
- SmtpNetworkElement.cs
- SqlClientPermission.cs
- SqlAliasesReferenced.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- OleDbConnectionFactory.cs
- EffectiveValueEntry.cs
- DescendentsWalkerBase.cs
- RegistrationServices.cs
- WindowsAuthenticationModule.cs
- SoapHeader.cs
- InputLanguageCollection.cs
- LicenseException.cs
- NativeRecognizer.cs
- VirtualPathProvider.cs
- SetState.cs
- InvokeMemberBinder.cs
- PropertyCollection.cs
- NameNode.cs
- HwndTarget.cs
- IPEndPointCollection.cs
- OptimalTextSource.cs
- validation.cs
- EndpointDiscoveryMetadata11.cs
- CannotUnloadAppDomainException.cs
- PresentationTraceSources.cs
- DeadCharTextComposition.cs
- TypeGeneratedEventArgs.cs
- ProcessHost.cs
- HuffModule.cs
- PropertyMapper.cs
- webeventbuffer.cs
- EncoderReplacementFallback.cs
- SoapCodeExporter.cs
- ComponentChangingEvent.cs
- ConfigurationFileMap.cs
- ExplicitDiscriminatorMap.cs
- GeometryCollection.cs
- ProfileGroupSettings.cs
- ProcessHost.cs
- XmlTextReaderImpl.cs
- StylusTouchDevice.cs
- FixedStringLookup.cs
- WsatProxy.cs
- ViewGenResults.cs
- PropertyBuilder.cs
- RtfToXamlReader.cs
- CommandEventArgs.cs
- MergeFailedEvent.cs
- EngineSite.cs
- HiddenField.cs
- InputScopeNameConverter.cs
- Run.cs
- SqlBooleanMismatchVisitor.cs
- Font.cs
- ReceiveContextCollection.cs
- ComponentTray.cs
- ImageSourceTypeConverter.cs
- SQLGuidStorage.cs
- DBSqlParserTable.cs
- FormatException.cs
- CompilationRelaxations.cs
- JsonFormatGeneratorStatics.cs
- SwitchLevelAttribute.cs
- MsmqDecodeHelper.cs
- GroupBoxDesigner.cs
- GeometryConverter.cs
- FileDialog_Vista_Interop.cs
- CaseStatementProjectedSlot.cs
- BitmapCodecInfoInternal.cs
- PerformanceCounterCategory.cs
- DecimalStorage.cs
- DrawListViewItemEventArgs.cs
- SetIterators.cs
- PocoPropertyAccessorStrategy.cs
- CodeCommentStatementCollection.cs
- _DisconnectOverlappedAsyncResult.cs
- AttachedPropertyMethodSelector.cs
- ByteStorage.cs
- SqlDataSourceEnumerator.cs
- BaseTemplateParser.cs
- TextContainerChangedEventArgs.cs