Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- remotingproxy.cs
- TextProviderWrapper.cs
- ComplexType.cs
- MessagingDescriptionAttribute.cs
- DesignerDataTable.cs
- RSACryptoServiceProvider.cs
- CompModSwitches.cs
- WCFModelStrings.Designer.cs
- WebConfigurationHostFileChange.cs
- Claim.cs
- TableLayoutSettingsTypeConverter.cs
- ToolStripStatusLabel.cs
- WbmpConverter.cs
- WizardForm.cs
- SplineKeyFrames.cs
- SqlNamer.cs
- IncomingWebResponseContext.cs
- LocatorGroup.cs
- CompensatableTransactionScopeActivityDesigner.cs
- SecurityElement.cs
- ComEventsSink.cs
- MaterialGroup.cs
- OdbcDataReader.cs
- FixedSOMSemanticBox.cs
- IList.cs
- ReadOnlyCollection.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- WebDescriptionAttribute.cs
- GPStream.cs
- SevenBitStream.cs
- RoutedEventHandlerInfo.cs
- DataGridViewButtonColumn.cs
- PreDigestedSignedInfo.cs
- InvokeSchedule.cs
- DbConnectionHelper.cs
- VirtualPathExtension.cs
- QuaternionAnimationBase.cs
- ServerValidateEventArgs.cs
- BaseUriWithWildcard.cs
- Expression.DebuggerProxy.cs
- DesignerUtils.cs
- XmlBindingWorker.cs
- X509SecurityTokenParameters.cs
- DiagnosticsConfigurationHandler.cs
- XsdDateTime.cs
- SmiMetaData.cs
- AsymmetricAlgorithm.cs
- LogLogRecordEnumerator.cs
- JavaScriptObjectDeserializer.cs
- FontUnitConverter.cs
- CompilerInfo.cs
- SQLStringStorage.cs
- FixedStringLookup.cs
- ConfigurationStrings.cs
- ExceptionHandlerDesigner.cs
- Tuple.cs
- ObjectStateManagerMetadata.cs
- SqlException.cs
- HashAlgorithm.cs
- RewritingPass.cs
- AQNBuilder.cs
- InvokeBinder.cs
- TokenBasedSetEnumerator.cs
- CodeConditionStatement.cs
- WindowsAltTab.cs
- Page.cs
- AliasedExpr.cs
- HMACSHA256.cs
- BigInt.cs
- contentDescriptor.cs
- SafeProcessHandle.cs
- GeneralTransform3DTo2D.cs
- BitmapEffectOutputConnector.cs
- ToolStripCodeDomSerializer.cs
- Form.cs
- SimpleHandlerBuildProvider.cs
- OutOfProcStateClientManager.cs
- SqlNamer.cs
- RegexMatchCollection.cs
- DeviceContext2.cs
- DataListItemEventArgs.cs
- AppSettingsExpressionBuilder.cs
- NumberFunctions.cs
- ListSortDescriptionCollection.cs
- ChineseLunisolarCalendar.cs
- GorillaCodec.cs
- MessageContractImporter.cs
- WizardStepBase.cs
- WebPartChrome.cs
- CodeIndexerExpression.cs
- TrackBar.cs
- DefaultPrintController.cs
- ClrProviderManifest.cs
- ConditionCollection.cs
- WindowsScrollBar.cs
- DependencyObjectPropertyDescriptor.cs
- FigureParagraph.cs
- SqlConnection.cs
- HostingPreferredMapPath.cs
- SplitContainer.cs