Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TransformProviderWrapper.cs
- LockedHandleGlyph.cs
- ValueUnavailableException.cs
- PageRanges.cs
- ServiceOperationParameter.cs
- PingReply.cs
- DebugView.cs
- ToolStripProgressBar.cs
- ListControlBuilder.cs
- ObjectListCommandCollection.cs
- ExpandSegment.cs
- AnnouncementInnerClient11.cs
- recordstatescratchpad.cs
- CapabilitiesState.cs
- ApplicationException.cs
- DateBoldEvent.cs
- MenuBase.cs
- TransformerInfo.cs
- CodeValidator.cs
- SafeRightsManagementHandle.cs
- Completion.cs
- DeviceFilterDictionary.cs
- PagePropertiesChangingEventArgs.cs
- DependencyPropertyDescriptor.cs
- NegotiationTokenAuthenticator.cs
- InstanceCreationEditor.cs
- CodeNamespaceImportCollection.cs
- ManipulationDevice.cs
- FormView.cs
- StorageBasedPackageProperties.cs
- FileEnumerator.cs
- MemberAccessException.cs
- DeobfuscatingStream.cs
- NullableIntAverageAggregationOperator.cs
- DBBindings.cs
- RedistVersionInfo.cs
- Camera.cs
- MergeFilterQuery.cs
- PrimarySelectionAdorner.cs
- SwitchAttribute.cs
- ControlBuilder.cs
- FileCodeGroup.cs
- NetCodeGroup.cs
- DataGridBoolColumn.cs
- connectionpool.cs
- HitTestResult.cs
- ReflectTypeDescriptionProvider.cs
- FrameworkElement.cs
- Compiler.cs
- GacUtil.cs
- Typography.cs
- ExpressionBinding.cs
- TranslateTransform.cs
- NotImplementedException.cs
- Cursor.cs
- TextEndOfParagraph.cs
- OdbcParameterCollection.cs
- TypedTableBaseExtensions.cs
- GenericsInstances.cs
- util.cs
- IndexedSelectQueryOperator.cs
- ValidationError.cs
- Utils.cs
- PassportAuthentication.cs
- KeyValuePair.cs
- DataSpaceManager.cs
- IndexedString.cs
- GlobalProxySelection.cs
- ColorConvertedBitmapExtension.cs
- Transform3D.cs
- KeyValuePair.cs
- StorageConditionPropertyMapping.cs
- FileCodeGroup.cs
- safemediahandle.cs
- ColorAnimation.cs
- FontSource.cs
- DeclaredTypeElementCollection.cs
- GB18030Encoding.cs
- EventQueueState.cs
- TextParentUndoUnit.cs
- Misc.cs
- KeyManager.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- EntitySet.cs
- StreamGeometryContext.cs
- DataGridViewColumnCollection.cs
- Facet.cs
- MobileUserControl.cs
- PhysicalAddress.cs
- SQLDateTime.cs
- PreviewKeyDownEventArgs.cs
- MetafileHeaderWmf.cs
- AvTrace.cs
- QueryStringParameter.cs
- ClientTargetCollection.cs
- DbSourceCommand.cs
- FocusTracker.cs
- DataGridComponentEditor.cs
- MappingSource.cs
- PrivateFontCollection.cs