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
- PrimitiveType.cs
- FlowLayoutPanel.cs
- Utils.cs
- DataColumnChangeEvent.cs
- Tool.cs
- InvokeCompletedEventArgs.cs
- SystemUdpStatistics.cs
- XmlSchemaCollection.cs
- pingexception.cs
- ToolZone.cs
- DesignerLoader.cs
- Transform3D.cs
- RefExpr.cs
- FixUpCollection.cs
- sitestring.cs
- HashRepartitionStream.cs
- JpegBitmapEncoder.cs
- DataControlLinkButton.cs
- CodeTypeConstructor.cs
- IInstanceContextProvider.cs
- WebWorkflowRole.cs
- GridViewSelectEventArgs.cs
- ByeMessage11.cs
- HostingMessageProperty.cs
- FloaterParaClient.cs
- RegexStringValidatorAttribute.cs
- IODescriptionAttribute.cs
- ArgIterator.cs
- PTUtility.cs
- UpdateTracker.cs
- StringFreezingAttribute.cs
- HandleRef.cs
- ImageList.cs
- XmlDictionaryReaderQuotas.cs
- RequestReplyCorrelator.cs
- Size3DConverter.cs
- DatatypeImplementation.cs
- UserPreferenceChangedEventArgs.cs
- Ops.cs
- AccessDataSourceView.cs
- VBIdentifierNameEditor.cs
- FloaterBaseParagraph.cs
- TdsParserStateObject.cs
- UInt16.cs
- __ComObject.cs
- OracleException.cs
- BinaryObjectReader.cs
- CodeTypeMember.cs
- UnhandledExceptionEventArgs.cs
- Types.cs
- WindowsSecurityToken.cs
- WorkflowDesignerMessageFilter.cs
- SafeNativeMethodsOther.cs
- PermissionSetEnumerator.cs
- URI.cs
- TraceRecords.cs
- TableChangeProcessor.cs
- SmiEventSink.cs
- ScrollItemProviderWrapper.cs
- sqlcontext.cs
- Propagator.JoinPropagator.cs
- BlurEffect.cs
- BatchParser.cs
- ExpressionNode.cs
- AssociationEndMember.cs
- SynchronizedInputPattern.cs
- DuplicateWaitObjectException.cs
- NonClientArea.cs
- SQLGuidStorage.cs
- DeleteHelper.cs
- UpdateCompiler.cs
- SurrogateChar.cs
- ArrayWithOffset.cs
- StreamBodyWriter.cs
- DeploymentSection.cs
- DocumentSchemaValidator.cs
- SharedStatics.cs
- ClientCultureInfo.cs
- SchemaImporterExtensionElement.cs
- httpapplicationstate.cs
- Style.cs
- ConfigurationStrings.cs
- ImageField.cs
- XPathCompileException.cs
- CodeGen.cs
- ControlBuilderAttribute.cs
- CollectionDataContract.cs
- SchemaDeclBase.cs
- StringFormat.cs
- ObservableCollection.cs
- SqlConnectionPoolProviderInfo.cs
- OrderedDictionary.cs
- DataReaderContainer.cs
- IndividualDeviceConfig.cs
- PagesChangedEventArgs.cs
- Invariant.cs
- EnumerableRowCollection.cs
- TextTrailingWordEllipsis.cs
- BitmapImage.cs
- BoundPropertyEntry.cs