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
- EarlyBoundInfo.cs
- SchemaCollectionPreprocessor.cs
- SqlBuilder.cs
- EditorAttribute.cs
- SerializerProvider.cs
- SiteMapSection.cs
- IDispatchConstantAttribute.cs
- ResumeStoryboard.cs
- XmlEnumAttribute.cs
- SqlReorderer.cs
- UnsafeNativeMethods.cs
- EmptyStringExpandableObjectConverter.cs
- UTF7Encoding.cs
- OutputScope.cs
- DateRangeEvent.cs
- SecurityContextCookieSerializer.cs
- StringReader.cs
- Terminate.cs
- BufferedGraphics.cs
- ServiceOperationParameter.cs
- DbConnectionOptions.cs
- Lease.cs
- InfoCardPolicy.cs
- coordinatorfactory.cs
- SqlConnectionPoolGroupProviderInfo.cs
- MeshGeometry3D.cs
- FrameworkReadOnlyPropertyMetadata.cs
- SHA256CryptoServiceProvider.cs
- SubclassTypeValidatorAttribute.cs
- MonitorWrapper.cs
- Decoder.cs
- ApplicationFileCodeDomTreeGenerator.cs
- DynamicPropertyHolder.cs
- SerializationTrace.cs
- Site.cs
- TransformedBitmap.cs
- TextTrailingCharacterEllipsis.cs
- FastEncoder.cs
- XmlSchemaException.cs
- BaseValidator.cs
- UserPersonalizationStateInfo.cs
- Convert.cs
- SamlAudienceRestrictionCondition.cs
- CopyOfAction.cs
- ImageInfo.cs
- OdbcConnection.cs
- EastAsianLunisolarCalendar.cs
- TableLayoutSettingsTypeConverter.cs
- Configuration.cs
- LineProperties.cs
- MdImport.cs
- CompositeActivityValidator.cs
- DataTablePropertyDescriptor.cs
- MembershipUser.cs
- PerformanceCounter.cs
- DataTemplate.cs
- ListViewGroupConverter.cs
- InputQueue.cs
- Point3DAnimationUsingKeyFrames.cs
- ConnectionAcceptor.cs
- XsltException.cs
- StickyNote.cs
- ImagingCache.cs
- EditorBrowsableAttribute.cs
- DataGridViewCellLinkedList.cs
- DataListItem.cs
- ChannelSinkStacks.cs
- RegexReplacement.cs
- ExceptionTrace.cs
- TableRow.cs
- PropertyRecord.cs
- CryptoProvider.cs
- SiteIdentityPermission.cs
- XmlNamespaceManager.cs
- Root.cs
- MailBnfHelper.cs
- PathHelper.cs
- CookieParameter.cs
- GifBitmapDecoder.cs
- UriTemplateMatchException.cs
- DataGridViewColumnCollection.cs
- StringConverter.cs
- DefinitionBase.cs
- BitmapEffectInput.cs
- X509Certificate2.cs
- GatewayIPAddressInformationCollection.cs
- HttpProcessUtility.cs
- EventMappingSettingsCollection.cs
- RecordConverter.cs
- EntityRecordInfo.cs
- ListControl.cs
- ElementFactory.cs
- WindowsGraphicsCacheManager.cs
- EntryWrittenEventArgs.cs
- XmlElementAttribute.cs
- RSAProtectedConfigurationProvider.cs
- SubpageParagraph.cs
- SiteMapHierarchicalDataSourceView.cs
- ReliableSessionBindingElement.cs
- ConfigurationValidatorBase.cs