Code:
/ DotNET / DotNET / 8.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
- SafeFileMappingHandle.cs
- ByteAnimationBase.cs
- GridViewDesigner.cs
- CustomValidator.cs
- DataViewSetting.cs
- ReadOnlyMetadataCollection.cs
- CharStorage.cs
- XmlExtensionFunction.cs
- AuthorizationRuleCollection.cs
- PropertyItem.cs
- FontStretchConverter.cs
- XmlNavigatorStack.cs
- DetailsViewModeEventArgs.cs
- TextPenaltyModule.cs
- ProjectionAnalyzer.cs
- PauseStoryboard.cs
- SoapConverter.cs
- XNodeNavigator.cs
- DecimalFormatter.cs
- ValidationEventArgs.cs
- SecurityPermission.cs
- BamlRecordWriter.cs
- TimelineCollection.cs
- WsdlEndpointConversionContext.cs
- MenuCommandsChangedEventArgs.cs
- KeyTime.cs
- OdbcConnectionOpen.cs
- XmlNodeList.cs
- DataStreamFromComStream.cs
- AddDataControlFieldDialog.cs
- OleDbException.cs
- cookiecollection.cs
- EventLogEntryCollection.cs
- SqlNotificationEventArgs.cs
- ClientTargetCollection.cs
- RelationshipSet.cs
- PrinterUnitConvert.cs
- IdentityValidationException.cs
- ContainsRowNumberChecker.cs
- FileBasedResourceGroveler.cs
- WebFormsRootDesigner.cs
- SapiRecognizer.cs
- SourceElementsCollection.cs
- SymbolPair.cs
- ToolStripContainer.cs
- StateFinalizationDesigner.cs
- DataGridRelationshipRow.cs
- GenericsInstances.cs
- AliasGenerator.cs
- Event.cs
- MediaTimeline.cs
- mediaeventargs.cs
- ProxyManager.cs
- JsonFormatReaderGenerator.cs
- IDataContractSurrogate.cs
- ParallelEnumerableWrapper.cs
- ItemCollection.cs
- DSACryptoServiceProvider.cs
- DataTemplateSelector.cs
- Scene3D.cs
- ValueQuery.cs
- PagePropertiesChangingEventArgs.cs
- XmlIgnoreAttribute.cs
- QuaternionRotation3D.cs
- XmlQueryStaticData.cs
- Assembly.cs
- TextTreeRootTextBlock.cs
- DataSourceXmlAttributeAttribute.cs
- SSmlParser.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- DescendentsWalker.cs
- Int64AnimationUsingKeyFrames.cs
- MediaTimeline.cs
- Section.cs
- PrintController.cs
- SimpleMailWebEventProvider.cs
- BasicExpressionVisitor.cs
- nulltextnavigator.cs
- TrayIconDesigner.cs
- XamlToRtfParser.cs
- DetailsViewRow.cs
- SoapEnumAttribute.cs
- BinaryWriter.cs
- SpecularMaterial.cs
- ValueType.cs
- XmlChoiceIdentifierAttribute.cs
- EntityViewGenerationAttribute.cs
- ListViewDeleteEventArgs.cs
- DelegateHelpers.Generated.cs
- DataServiceQueryProvider.cs
- ConnectionPoint.cs
- AssemblyBuilder.cs
- CleanUpVirtualizedItemEventArgs.cs
- FixedSOMLineRanges.cs
- AutomationAttributeInfo.cs
- ClientSettingsProvider.cs
- Reference.cs
- DictionaryGlobals.cs
- SecurityContext.cs
- ContainerParagraph.cs