Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- sqlmetadatafactory.cs
- SessionIDManager.cs
- WebServiceFaultDesigner.cs
- Decorator.cs
- DefaultTextStore.cs
- DynamicDiscoveryDocument.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- TableSectionStyle.cs
- RuleRefElement.cs
- ToolStripManager.cs
- TerminatorSinks.cs
- XmlSchemaInclude.cs
- MouseEvent.cs
- RegisteredDisposeScript.cs
- XmlArrayAttribute.cs
- XmlKeywords.cs
- DataGridViewCellStyleBuilderDialog.cs
- SevenBitStream.cs
- EventRecordWrittenEventArgs.cs
- FormatterConverter.cs
- SqlDataSourceConfigureSortForm.cs
- TypeConverterAttribute.cs
- TablePattern.cs
- SessionStateItemCollection.cs
- XmlLinkedNode.cs
- GradientStop.cs
- MetadataArtifactLoaderComposite.cs
- BufferedGraphics.cs
- BasePattern.cs
- CompositeCollectionView.cs
- TargetParameterCountException.cs
- XmlObjectSerializer.cs
- DesignerToolboxInfo.cs
- ReadOnlyObservableCollection.cs
- RequestQueryProcessor.cs
- ConfigurationStrings.cs
- MenuEventArgs.cs
- DataGridRow.cs
- EventLogPermissionEntry.cs
- RuleSettingsCollection.cs
- StructuredType.cs
- FormViewUpdatedEventArgs.cs
- DataGridToolTip.cs
- AsyncCallback.cs
- UnorderedHashRepartitionStream.cs
- __Filters.cs
- RuntimeIdentifierPropertyAttribute.cs
- ConfigsHelper.cs
- Rotation3DAnimationBase.cs
- PropertyConverter.cs
- BitmapData.cs
- StrokeNodeEnumerator.cs
- IPAddress.cs
- CookieParameter.cs
- CompilerError.cs
- EntityClassGenerator.cs
- HandlerBase.cs
- BindingRestrictions.cs
- DataGridViewColumnDesigner.cs
- BaseDataBoundControl.cs
- TextElementEnumerator.cs
- SimpleApplicationHost.cs
- DataSourceXmlSubItemAttribute.cs
- TdsParserHelperClasses.cs
- SimpleRecyclingCache.cs
- Point.cs
- PolicyLevel.cs
- PriorityBinding.cs
- ExceptionHelpers.cs
- DataGridViewTopLeftHeaderCell.cs
- OleDbFactory.cs
- BamlResourceSerializer.cs
- DocumentEventArgs.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- ObsoleteAttribute.cs
- AssociativeAggregationOperator.cs
- Fault.cs
- _SecureChannel.cs
- PeerToPeerException.cs
- StringSource.cs
- HtmlInputCheckBox.cs
- RectValueSerializer.cs
- DesignerSerializationOptionsAttribute.cs
- SyndicationSerializer.cs
- InputLanguageSource.cs
- ConfigXmlAttribute.cs
- TargetConverter.cs
- LongValidatorAttribute.cs
- DataGridViewImageCell.cs
- SymmetricKeyWrap.cs
- XmlAttribute.cs
- FrameworkContentElement.cs
- CreatingCookieEventArgs.cs
- PropertiesTab.cs
- MappableObjectManager.cs
- Track.cs
- PassportAuthenticationModule.cs
- SHA1.cs
- BlockCollection.cs
- SystemWebSectionGroup.cs