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
- DataObjectCopyingEventArgs.cs
- ImageProxy.cs
- TypeBinaryExpression.cs
- CodeDomSerializer.cs
- EntityProxyTypeInfo.cs
- DoubleConverter.cs
- MemberNameValidator.cs
- TraceEventCache.cs
- SafePointer.cs
- StylusButtonCollection.cs
- EventsTab.cs
- HMACSHA512.cs
- XmlSchemaSimpleContentRestriction.cs
- ByteKeyFrameCollection.cs
- HtmlShim.cs
- VirtualPathUtility.cs
- Sorting.cs
- ACE.cs
- datacache.cs
- CounterSample.cs
- CodeDOMProvider.cs
- CompilerErrorCollection.cs
- ThreadStaticAttribute.cs
- SelectionProcessor.cs
- Debugger.cs
- XmlSchemaProviderAttribute.cs
- ActiveXHost.cs
- XmlSchemaChoice.cs
- ConnectionProviderAttribute.cs
- ProfilePropertySettingsCollection.cs
- CatalogPartCollection.cs
- DebuggerAttributes.cs
- AspNetPartialTrustHelpers.cs
- SqlUserDefinedAggregateAttribute.cs
- CompilerGeneratedAttribute.cs
- RemotingException.cs
- OleDbStruct.cs
- JsonClassDataContract.cs
- XmlSchemaSimpleType.cs
- OrderingInfo.cs
- WebControlsSection.cs
- PenCursorManager.cs
- OneToOneMappingSerializer.cs
- CommandLibraryHelper.cs
- EntityContainer.cs
- RangeExpression.cs
- MarshalByRefObject.cs
- ExpressionBuilder.cs
- QueueProcessor.cs
- OleAutBinder.cs
- TemplateManager.cs
- TemplateManager.cs
- ObjectContextServiceProvider.cs
- ToolStripManager.cs
- ExpressionBuilderCollection.cs
- ShaderRenderModeValidation.cs
- TemplateApplicationHelper.cs
- ConfigXmlElement.cs
- StylusEventArgs.cs
- ReflectionTypeLoadException.cs
- PermissionAttributes.cs
- PropertyEmitterBase.cs
- SafeProcessHandle.cs
- EventWaitHandle.cs
- AxHost.cs
- ToolBarDesigner.cs
- CanExecuteRoutedEventArgs.cs
- AnnotationAdorner.cs
- DBAsyncResult.cs
- MsdtcWrapper.cs
- DesignerGenericWebPart.cs
- Lookup.cs
- WebControlAdapter.cs
- EventLogPermission.cs
- FrameworkObject.cs
- ItemType.cs
- ValidatingReaderNodeData.cs
- VirtualizingPanel.cs
- RectangleGeometry.cs
- TrustLevelCollection.cs
- GenericTextProperties.cs
- Collection.cs
- MSAAEventDispatcher.cs
- HashSet.cs
- GroupBox.cs
- SimpleFieldTemplateFactory.cs
- StateMachineWorkflowInstance.cs
- ObjectViewFactory.cs
- DictionaryContent.cs
- LinkTarget.cs
- EntityDataSourceSelectedEventArgs.cs
- Object.cs
- ModifierKeysValueSerializer.cs
- StringResourceManager.cs
- CloudCollection.cs
- Internal.cs
- CodeTypeReferenceSerializer.cs
- Monitor.cs
- EmbossBitmapEffect.cs
- CommandHelper.cs