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
- ConfigXmlText.cs
- ControlPaint.cs
- TransportSecurityBindingElement.cs
- NetworkInformationPermission.cs
- OutputScopeManager.cs
- PassportAuthenticationEventArgs.cs
- DesignTimeHTMLTextWriter.cs
- FontStretchConverter.cs
- SchemaAttDef.cs
- CustomLineCap.cs
- ZeroOpNode.cs
- SafeProcessHandle.cs
- XamlFilter.cs
- Ref.cs
- PolicyException.cs
- SystemUdpStatistics.cs
- WindowsGraphicsCacheManager.cs
- CatalogPartChrome.cs
- SystemTcpConnection.cs
- xmlsaver.cs
- FloaterParagraph.cs
- ListViewItemMouseHoverEvent.cs
- MenuCommand.cs
- ToolStripItemRenderEventArgs.cs
- DBConnection.cs
- CommandHelper.cs
- Crc32.cs
- GeometryValueSerializer.cs
- SamlAction.cs
- TokenBasedSetEnumerator.cs
- RijndaelCryptoServiceProvider.cs
- XMLSyntaxException.cs
- SingleObjectCollection.cs
- Input.cs
- WorkflowRuntimeServiceElementCollection.cs
- AsymmetricSignatureFormatter.cs
- HttpPostLocalhostServerProtocol.cs
- Brushes.cs
- XmlExtensionFunction.cs
- FileClassifier.cs
- ApplicationHost.cs
- OdbcError.cs
- LeaseManager.cs
- Exceptions.cs
- OdbcErrorCollection.cs
- DiscreteKeyFrames.cs
- DataGridDesigner.cs
- DefaultHttpHandler.cs
- Pair.cs
- basemetadatamappingvisitor.cs
- XmlProcessingInstruction.cs
- CodeIterationStatement.cs
- _NetworkingPerfCounters.cs
- URI.cs
- dtdvalidator.cs
- PersonalizationStateInfo.cs
- ExceptionUtil.cs
- BaseAutoFormat.cs
- Int16AnimationUsingKeyFrames.cs
- ImageDesigner.cs
- SystemColors.cs
- TripleDESCryptoServiceProvider.cs
- CompilationUnit.cs
- OpenFileDialog.cs
- SiteIdentityPermission.cs
- Attribute.cs
- SQLInt16.cs
- BitmapEffect.cs
- ParallelQuery.cs
- RelationalExpressions.cs
- RepeaterDesigner.cs
- SimpleBitVector32.cs
- RichTextBoxAutomationPeer.cs
- securitycriticaldata.cs
- ListManagerBindingsCollection.cs
- DispatcherEventArgs.cs
- AdPostCacheSubstitution.cs
- DataGridColumn.cs
- ResourceDisplayNameAttribute.cs
- SecuritySessionServerSettings.cs
- UnsafeNativeMethods.cs
- Brush.cs
- TypeConverterBase.cs
- DrawingContext.cs
- SqlCacheDependency.cs
- ResXResourceSet.cs
- DropTarget.cs
- IntellisenseTextBox.designer.cs
- TextShapeableCharacters.cs
- InvokeMethodActivityDesigner.cs
- OpenFileDialog.cs
- ResourceBinder.cs
- SkinIDTypeConverter.cs
- WindowsServiceCredential.cs
- ReaderWriterLock.cs
- ToolBarOverflowPanel.cs
- BindingBase.cs
- DataObjectCopyingEventArgs.cs
- ObjectConverter.cs
- EncoderBestFitFallback.cs