Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClassicBorderDecorator.cs
- AsyncOperation.cs
- StringBuilder.cs
- DeclaredTypeElement.cs
- ImageCodecInfo.cs
- NativeMethods.cs
- DataGridPageChangedEventArgs.cs
- XmlElementAttribute.cs
- HtmlControlPersistable.cs
- RegexStringValidatorAttribute.cs
- EventData.cs
- AdPostCacheSubstitution.cs
- DataGridColumnDropSeparator.cs
- CodeVariableDeclarationStatement.cs
- RowType.cs
- ComponentEditorPage.cs
- SendKeys.cs
- MetadataItemCollectionFactory.cs
- ValueUnavailableException.cs
- BindToObject.cs
- RadioButtonRenderer.cs
- MouseDevice.cs
- DesignerAttribute.cs
- WhitespaceSignificantCollectionAttribute.cs
- Imaging.cs
- NCryptSafeHandles.cs
- UserControlAutomationPeer.cs
- ResourceCodeDomSerializer.cs
- SafeRegistryHandle.cs
- SchemaImporterExtensionElement.cs
- EtwTrace.cs
- DebugViewWriter.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- MarginsConverter.cs
- BamlStream.cs
- MetadataItem_Static.cs
- HtmlInputSubmit.cs
- MobileUserControlDesigner.cs
- DataGridViewRowsAddedEventArgs.cs
- ElasticEase.cs
- ColumnClickEvent.cs
- PersonalizationAdministration.cs
- DataTablePropertyDescriptor.cs
- CounterSample.cs
- LineGeometry.cs
- CheckedPointers.cs
- Point3DKeyFrameCollection.cs
- Image.cs
- TextInfo.cs
- PointIndependentAnimationStorage.cs
- FormatConvertedBitmap.cs
- WebBrowser.cs
- AnimationLayer.cs
- BamlTreeNode.cs
- PermissionSet.cs
- ProxyHwnd.cs
- FileDialogCustomPlace.cs
- ChtmlTextBoxAdapter.cs
- TakeQueryOptionExpression.cs
- CultureTableRecord.cs
- LiteralSubsegment.cs
- InsufficientExecutionStackException.cs
- ListDictionaryInternal.cs
- ResourceCategoryAttribute.cs
- Ipv6Element.cs
- EventPrivateKey.cs
- PersistenceTypeAttribute.cs
- ByteStack.cs
- SmiMetaData.cs
- JsonQNameDataContract.cs
- NativeMethods.cs
- HttpContextServiceHost.cs
- ToolStripDropDownItem.cs
- ScriptingSectionGroup.cs
- ProfilePropertySettingsCollection.cs
- WebBrowserBase.cs
- ResourceProperty.cs
- TableAdapterManagerMethodGenerator.cs
- AlignmentXValidation.cs
- Helper.cs
- DefaultProxySection.cs
- ProfessionalColorTable.cs
- ExtensionWindow.cs
- UnionCodeGroup.cs
- RegionIterator.cs
- ImageListImage.cs
- LinearGradientBrush.cs
- DropSource.cs
- VirtualizingStackPanel.cs
- LambdaReference.cs
- DataGridViewLayoutData.cs
- TcpProcessProtocolHandler.cs
- DbMetaDataColumnNames.cs
- EpmContentSerializerBase.cs
- ServiceAuthorizationBehavior.cs
- Transform3D.cs
- SqlUtils.cs
- XmlValidatingReader.cs
- WindowsStatic.cs
- AppDomain.cs