Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- MissingManifestResourceException.cs
- DataRelation.cs
- HttpListenerResponse.cs
- CodeValidator.cs
- XPathArrayIterator.cs
- SamlAudienceRestrictionCondition.cs
- SessionStateItemCollection.cs
- BridgeDataRecord.cs
- WrappedIUnknown.cs
- SHA1Managed.cs
- PropertyOrder.cs
- EntityKey.cs
- ObjectCache.cs
- StorageAssociationSetMapping.cs
- Screen.cs
- GridViewRowCollection.cs
- XslNumber.cs
- CopyAttributesAction.cs
- SqlPersistenceProviderFactory.cs
- EqualityComparer.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- JsonUriDataContract.cs
- OdbcTransaction.cs
- XmlSchemaIdentityConstraint.cs
- PropertyRef.cs
- OleDbRowUpdatedEvent.cs
- HttpContextWrapper.cs
- DocumentViewerBase.cs
- Quaternion.cs
- SafeProcessHandle.cs
- PropertyConverter.cs
- GridErrorDlg.cs
- Dump.cs
- Console.cs
- XamlSerializationHelper.cs
- MemberDomainMap.cs
- AssociationSet.cs
- ServiceDescription.cs
- HostingPreferredMapPath.cs
- ParenthesizePropertyNameAttribute.cs
- SamlSecurityToken.cs
- NavigationHelper.cs
- OpacityConverter.cs
- PropertyGeneratedEventArgs.cs
- TextControlDesigner.cs
- PerformanceCounter.cs
- DataGridViewHeaderCell.cs
- ToolStripControlHost.cs
- DynamicObjectAccessor.cs
- HostingEnvironmentException.cs
- DataGridViewBand.cs
- ArraySet.cs
- OpacityConverter.cs
- DataGridItemEventArgs.cs
- DecimalConstantAttribute.cs
- SharedConnectionListener.cs
- FontEmbeddingManager.cs
- TextOnlyOutput.cs
- QuestionEventArgs.cs
- ValidationErrorCollection.cs
- StylusPointProperties.cs
- StubHelpers.cs
- WebEventTraceProvider.cs
- SignalGate.cs
- ApplyTemplatesAction.cs
- GlyphRunDrawing.cs
- AsymmetricKeyExchangeFormatter.cs
- Compiler.cs
- DataGridItem.cs
- SemaphoreSecurity.cs
- Model3D.cs
- Speller.cs
- DependencyPropertyValueSerializer.cs
- EventDescriptor.cs
- BoundingRectTracker.cs
- EntityDesignerBuildProvider.cs
- IfAction.cs
- Rect.cs
- WpfKnownTypeInvoker.cs
- KnownBoxes.cs
- DesignRelation.cs
- DbDataAdapter.cs
- DataGridHeadersVisibilityToVisibilityConverter.cs
- QilPatternFactory.cs
- AssociatedControlConverter.cs
- sqlmetadatafactory.cs
- WebScriptServiceHostFactory.cs
- PriorityBindingExpression.cs
- HostingEnvironment.cs
- DataSourceCacheDurationConverter.cs
- VirtualPath.cs
- TransformProviderWrapper.cs
- WebAdminConfigurationHelper.cs
- KnownBoxes.cs
- PopupEventArgs.cs
- ObsoleteAttribute.cs
- IdentityReference.cs
- ProbeRequestResponseAsyncResult.cs
- StylusPoint.cs
- RefExpr.cs