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
- InvalidPrinterException.cs
- JsonReader.cs
- CompleteWizardStep.cs
- PropertyChangingEventArgs.cs
- ErrorInfoXmlDocument.cs
- SQLInt16.cs
- CodeCompileUnit.cs
- ScalarConstant.cs
- NumberAction.cs
- DataGridItemEventArgs.cs
- PerformanceCounterPermissionEntry.cs
- PersonalizableTypeEntry.cs
- RegexFCD.cs
- BasicKeyConstraint.cs
- Graphics.cs
- CodeTypeOfExpression.cs
- LoginUtil.cs
- PaperSource.cs
- TextFormatterHost.cs
- BitArray.cs
- RegisteredDisposeScript.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- TCEAdapterGenerator.cs
- Point3D.cs
- GenericPrincipal.cs
- HtmlTableRowCollection.cs
- SequenceRangeCollection.cs
- StrongName.cs
- RelatedImageListAttribute.cs
- TextEncodedRawTextWriter.cs
- XmlAttributeOverrides.cs
- NamespaceDisplay.xaml.cs
- returneventsaver.cs
- DeclaredTypeElement.cs
- XmlSchemaDatatype.cs
- RadioButtonList.cs
- RealizationContext.cs
- RangeValidator.cs
- XmlSchemaAppInfo.cs
- PeerInvitationResponse.cs
- XmlSchemaGroupRef.cs
- ListGeneralPage.cs
- Compiler.cs
- ScrollableControl.cs
- RowToFieldTransformer.cs
- TypeCodeDomSerializer.cs
- WebPartUtil.cs
- GcHandle.cs
- __TransparentProxy.cs
- Lasso.cs
- ChtmlPageAdapter.cs
- StylusPointProperty.cs
- XmlSerializableServices.cs
- DLinqDataModelProvider.cs
- SqlDataAdapter.cs
- ItemsControlAutomationPeer.cs
- CompoundFileStreamReference.cs
- SchemaEntity.cs
- StoryFragments.cs
- SQLMoneyStorage.cs
- X509Utils.cs
- ServiceNotStartedException.cs
- JoinGraph.cs
- Property.cs
- SubstitutionList.cs
- SpeechUI.cs
- PasswordTextContainer.cs
- InputScopeAttribute.cs
- DocumentPageViewAutomationPeer.cs
- TextEditorParagraphs.cs
- Matrix.cs
- externdll.cs
- ForeignConstraint.cs
- TypeUtil.cs
- SizeAnimationBase.cs
- EdmComplexPropertyAttribute.cs
- cookiecollection.cs
- ContentType.cs
- webbrowsersite.cs
- DataServicePagingProviderWrapper.cs
- ComEventsInfo.cs
- PageStatePersister.cs
- XamlFilter.cs
- NumericUpDownAcceleration.cs
- Literal.cs
- KeyValueConfigurationElement.cs
- BlurEffect.cs
- CultureInfoConverter.cs
- Mapping.cs
- ExceptionNotification.cs
- QuotedPrintableStream.cs
- InternalPermissions.cs
- DoubleAverageAggregationOperator.cs
- Subtree.cs
- Figure.cs
- SiteMembershipCondition.cs
- XmlDictionaryWriter.cs
- XmlReflectionImporter.cs
- DependencyObject.cs
- PageOutputQuality.cs