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
- PackWebResponse.cs
- PenLineJoinValidation.cs
- DataBoundControl.cs
- SqlDataSourceCommandEventArgs.cs
- CompilationLock.cs
- ManipulationPivot.cs
- ObjectContext.cs
- InternalPermissions.cs
- DiffuseMaterial.cs
- DocumentPageHost.cs
- SQLInt64.cs
- ActivityExecutorOperation.cs
- Debug.cs
- CallContext.cs
- ByteStack.cs
- CompilationUtil.cs
- DataGridCaption.cs
- Comparer.cs
- IdnMapping.cs
- HighContrastHelper.cs
- FieldToken.cs
- TraceSection.cs
- ToolboxDataAttribute.cs
- AgileSafeNativeMemoryHandle.cs
- MessageHeaderDescriptionCollection.cs
- ApplicationSettingsBase.cs
- InstanceNotReadyException.cs
- AmbientProperties.cs
- PrintingPermissionAttribute.cs
- AdornedElementPlaceholder.cs
- MatrixTransform3D.cs
- InputLanguageEventArgs.cs
- KeyValuePairs.cs
- ContentElementAutomationPeer.cs
- dataprotectionpermissionattribute.cs
- UnsafeCollabNativeMethods.cs
- XPathAxisIterator.cs
- PageAsyncTask.cs
- BoundField.cs
- StringFreezingAttribute.cs
- PolicyManager.cs
- Message.cs
- NavigatingCancelEventArgs.cs
- HttpHeaderCollection.cs
- ComponentResourceKeyConverter.cs
- PointAnimationUsingPath.cs
- RepeatButton.cs
- DataGridViewHitTestInfo.cs
- StateRuntime.cs
- Operators.cs
- FrameworkObject.cs
- DLinqAssociationProvider.cs
- CellParaClient.cs
- LinearQuaternionKeyFrame.cs
- Publisher.cs
- XmlCharacterData.cs
- MultiView.cs
- CodeChecksumPragma.cs
- XPathExpr.cs
- PackWebRequestFactory.cs
- XmlUtf8RawTextWriter.cs
- ValuePatternIdentifiers.cs
- ImageCollectionCodeDomSerializer.cs
- QuarticEase.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ForceCopyBuildProvider.cs
- CustomPopupPlacement.cs
- SiteMapDataSourceDesigner.cs
- SubstitutionResponseElement.cs
- WorkflowHostingEndpoint.cs
- FixedSOMPageElement.cs
- DataPagerField.cs
- ListViewGroupConverter.cs
- RequestCachePolicy.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- SecurityState.cs
- ParameterCollectionEditor.cs
- DocumentApplication.cs
- RawUIStateInputReport.cs
- EnumUnknown.cs
- Cursor.cs
- DocumentsTrace.cs
- FormsAuthenticationCredentials.cs
- ClassicBorderDecorator.cs
- XD.cs
- KerberosTicketHashIdentifierClause.cs
- ActivityCollectionMarkupSerializer.cs
- SqlError.cs
- Int64Converter.cs
- DiscoveryClientDuplexChannel.cs
- ApplicationDirectoryMembershipCondition.cs
- DeferredSelectedIndexReference.cs
- XmlSchemaSimpleContentRestriction.cs
- FormsAuthenticationUser.cs
- SchemaTableOptionalColumn.cs
- Delegate.cs
- ListItemCollection.cs
- ReplyChannelBinder.cs
- LogReserveAndAppendState.cs
- glyphs.cs