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
- SQLCharsStorage.cs
- SubMenuStyle.cs
- Table.cs
- CustomValidator.cs
- CustomErrorsSection.cs
- _FixedSizeReader.cs
- unitconverter.cs
- StringDictionary.cs
- TextBoxRenderer.cs
- TypeBinaryExpression.cs
- RegexGroupCollection.cs
- WebServiceEnumData.cs
- OperandQuery.cs
- VectorAnimation.cs
- BasePattern.cs
- RegexEditorDialog.cs
- BulletedListEventArgs.cs
- HtmlElement.cs
- AppearanceEditorPart.cs
- RegistrySecurity.cs
- RemotingException.cs
- IndexOutOfRangeException.cs
- ImageDrawing.cs
- PresentationAppDomainManager.cs
- DataGridViewCell.cs
- ContextBase.cs
- VisualTreeHelper.cs
- ZoomPercentageConverter.cs
- SqlDataSourceConfigureSortForm.cs
- ChannelDispatcherCollection.cs
- ProxyAttribute.cs
- RemoteX509AsymmetricSecurityKey.cs
- XPathNodePointer.cs
- OpCopier.cs
- DataBindingCollection.cs
- AuthenticatingEventArgs.cs
- TargetPerspective.cs
- MenuItemStyleCollection.cs
- Inline.cs
- Table.cs
- ProcessHost.cs
- DataGrid.cs
- UriTemplateClientFormatter.cs
- VirtualPathUtility.cs
- RowToFieldTransformer.cs
- securestring.cs
- SqlDataSourceConfigureFilterForm.cs
- HttpConfigurationContext.cs
- NotificationContext.cs
- WpfSharedXamlSchemaContext.cs
- DesignerVerb.cs
- SerializableAuthorizationContext.cs
- messageonlyhwndwrapper.cs
- LinkTarget.cs
- TableRowCollection.cs
- InputManager.cs
- StorageBasedPackageProperties.cs
- XmlBinaryReader.cs
- Form.cs
- RegexCompiler.cs
- MenuBindingsEditorForm.cs
- LayoutTableCell.cs
- FontUnit.cs
- DataSourceComponent.cs
- DataControlHelper.cs
- DesignerForm.cs
- TrackingCondition.cs
- MetabaseServerConfig.cs
- HtmlPanelAdapter.cs
- TablePatternIdentifiers.cs
- QueryableFilterUserControl.cs
- SqlTriggerAttribute.cs
- FileBasedResourceGroveler.cs
- WebPartConnectionsCloseVerb.cs
- ComponentRenameEvent.cs
- DrawingContextWalker.cs
- TypeLoadException.cs
- TextEditorSelection.cs
- CodeValidator.cs
- MediaPlayer.cs
- ImportContext.cs
- ServiceHandle.cs
- ServiceRouteHandler.cs
- KerberosReceiverSecurityToken.cs
- DesignerAttribute.cs
- QueryReaderSettings.cs
- StorageMappingItemCollection.cs
- HuffModule.cs
- rsa.cs
- LookupNode.cs
- CultureData.cs
- OleDbCommand.cs
- ChildrenQuery.cs
- TableProviderWrapper.cs
- CDSCollectionETWBCLProvider.cs
- ButtonBaseAutomationPeer.cs
- FrugalList.cs
- ConnectionManagementElement.cs
- EditorPartChrome.cs
- XmlSchemaImporter.cs