Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Transform3DGroup.cs
- DropDownList.cs
- InnerItemCollectionView.cs
- RelOps.cs
- SystemFonts.cs
- SerializerDescriptor.cs
- Pointer.cs
- X509SecurityTokenAuthenticator.cs
- X509CertificateClaimSet.cs
- InternalDispatchObject.cs
- DataRowComparer.cs
- QuestionEventArgs.cs
- HtmlLink.cs
- ConfigXmlDocument.cs
- Task.cs
- GPRECTF.cs
- sqlcontext.cs
- WebBrowser.cs
- EntityObject.cs
- Token.cs
- URLBuilder.cs
- URLIdentityPermission.cs
- XmlNavigatorFilter.cs
- SigningProgress.cs
- Expander.cs
- DesignerRegion.cs
- EntityDataSourceWrapperCollection.cs
- ConfigurationLocation.cs
- OracleInternalConnection.cs
- ChannelBuilder.cs
- CommandPlan.cs
- PropertyChangeTracker.cs
- __Error.cs
- Graph.cs
- PenContext.cs
- Duration.cs
- ContourSegment.cs
- OdbcFactory.cs
- ImageClickEventArgs.cs
- RetrieveVirtualItemEventArgs.cs
- FormParameter.cs
- Region.cs
- SqlDependencyUtils.cs
- HttpCapabilitiesBase.cs
- OneOfConst.cs
- DataRecord.cs
- TCEAdapterGenerator.cs
- CodeTypeParameterCollection.cs
- ThreadTrace.cs
- CodeIndexerExpression.cs
- ArraySortHelper.cs
- SetterBaseCollection.cs
- HealthMonitoringSection.cs
- UrlMapping.cs
- CompositionAdorner.cs
- MimeTextImporter.cs
- OutputScopeManager.cs
- ThicknessKeyFrameCollection.cs
- DataRelationCollection.cs
- UnmanagedHandle.cs
- AnonymousIdentificationSection.cs
- ResourceExpressionBuilder.cs
- CodeSubDirectory.cs
- SecurityAccessDeniedException.cs
- HttpHandlersInstallComponent.cs
- MasterPage.cs
- RequiredAttributeAttribute.cs
- _SslStream.cs
- Size.cs
- VirtualPathProvider.cs
- SimpleTypesSurrogate.cs
- MailMessageEventArgs.cs
- AstTree.cs
- BitmapPalettes.cs
- RulePatternOps.cs
- UrlPath.cs
- DrawingContextWalker.cs
- FilteredReadOnlyMetadataCollection.cs
- ParameterCollection.cs
- PropertyGeneratedEventArgs.cs
- RegionInfo.cs
- TrustLevel.cs
- SemanticBasicElement.cs
- ContainerUtilities.cs
- ControlParameter.cs
- OdbcEnvironmentHandle.cs
- FamilyMapCollection.cs
- TrackingConditionCollection.cs
- OdbcEnvironmentHandle.cs
- Camera.cs
- DeviceSpecificChoiceCollection.cs
- ListBoxAutomationPeer.cs
- QilExpression.cs
- Dictionary.cs
- _NestedMultipleAsyncResult.cs
- IdentityNotMappedException.cs
- SpinLock.cs
- CommonGetThemePartSize.cs
- OutputCacheProfile.cs
- ChangeTracker.cs