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
- CompoundFileIOPermission.cs
- ObjectFullSpanRewriter.cs
- VariantWrapper.cs
- GlobalDataBindingHandler.cs
- IndentedWriter.cs
- WebPartDisplayModeEventArgs.cs
- LinqDataSourceView.cs
- BooleanFacetDescriptionElement.cs
- XmlSchemaInfo.cs
- SqlDependency.cs
- ContentPathSegment.cs
- Visual3D.cs
- XMLDiffLoader.cs
- XmlReflectionMember.cs
- ClientSettingsProvider.cs
- SecurityTokenRequirement.cs
- XmlMemberMapping.cs
- UnsafeNativeMethodsCLR.cs
- RoleGroupCollection.cs
- MetadataSource.cs
- X509Certificate.cs
- MenuItem.cs
- DirectoryObjectSecurity.cs
- __Filters.cs
- UrlEncodedParameterWriter.cs
- Size3DValueSerializer.cs
- UpdateEventArgs.cs
- WebZone.cs
- TemplateBaseAction.cs
- TransactionBridge.cs
- DocumentApplicationJournalEntry.cs
- WsatServiceAddress.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- DatatypeImplementation.cs
- WebBrowserDocumentCompletedEventHandler.cs
- PublisherMembershipCondition.cs
- HtmlImage.cs
- ScriptControlDescriptor.cs
- FlowLayoutPanel.cs
- ImageCodecInfo.cs
- CommandSet.cs
- TypeHelper.cs
- QuaternionValueSerializer.cs
- TemplatePagerField.cs
- ArraySegment.cs
- ReadingWritingEntityEventArgs.cs
- DesignOnlyAttribute.cs
- SqlMetaData.cs
- HtmlControl.cs
- WrappedDispatcherException.cs
- fixedPageContentExtractor.cs
- DataObjectSettingDataEventArgs.cs
- Char.cs
- Icon.cs
- CompositeTypefaceMetrics.cs
- TableLayoutCellPaintEventArgs.cs
- ItemContainerGenerator.cs
- AssemblyCacheEntry.cs
- _UriTypeConverter.cs
- EventLogHandle.cs
- GPPOINTF.cs
- IncrementalCompileAnalyzer.cs
- ControlsConfig.cs
- ToolboxItem.cs
- ISFTagAndGuidCache.cs
- DataQuery.cs
- ContentPosition.cs
- SparseMemoryStream.cs
- X509SubjectKeyIdentifierClause.cs
- sortedlist.cs
- IPPacketInformation.cs
- GridViewItemAutomationPeer.cs
- DataViewManager.cs
- XmlSchemaIdentityConstraint.cs
- DockingAttribute.cs
- DataGridViewCellLinkedList.cs
- Screen.cs
- Form.cs
- StylusEditingBehavior.cs
- InteropBitmapSource.cs
- OleDbRowUpdatedEvent.cs
- HtmlWindow.cs
- ContentElement.cs
- MetadataUtilsSmi.cs
- SemanticBasicElement.cs
- HiddenField.cs
- MobileControlsSection.cs
- PersistenceProviderDirectory.cs
- PartialTrustVisibleAssembly.cs
- HTTPNotFoundHandler.cs
- FloatUtil.cs
- SingleAnimationBase.cs
- OleDbReferenceCollection.cs
- JavaScriptString.cs
- ClientRoleProvider.cs
- StringArrayConverter.cs
- ToolStripRendererSwitcher.cs
- TypeSchema.cs
- ClaimTypes.cs
- EpmSourcePathSegment.cs