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
- SourceFileInfo.cs
- OleDbFactory.cs
- ValueType.cs
- VirtualizedCellInfoCollection.cs
- HttpResponseHeader.cs
- HttpWriter.cs
- TrailingSpaceComparer.cs
- LoadRetryStrategyFactory.cs
- BindingContext.cs
- CategoryGridEntry.cs
- HebrewCalendar.cs
- Win32KeyboardDevice.cs
- DataGridViewComboBoxEditingControl.cs
- WebBrowserHelper.cs
- CleanUpVirtualizedItemEventArgs.cs
- InternalControlCollection.cs
- CheckBoxStandardAdapter.cs
- BufferedStream2.cs
- StyleCollection.cs
- VisualStyleTypesAndProperties.cs
- PageSetupDialog.cs
- DragStartedEventArgs.cs
- ConfigPathUtility.cs
- Button.cs
- SecurityTokenResolver.cs
- CustomCredentialPolicy.cs
- figurelength.cs
- TypeNameConverter.cs
- DefaultTextStore.cs
- ApplicationManager.cs
- XmlSchemaValidationException.cs
- UniqueEventHelper.cs
- TableCell.cs
- MachineKeySection.cs
- TextStore.cs
- ListQueryResults.cs
- RowTypeElement.cs
- ServiceOperationWrapper.cs
- Exceptions.cs
- DetailsViewRowCollection.cs
- WebChannelFactory.cs
- Msmq3PoisonHandler.cs
- User.cs
- PinnedBufferMemoryStream.cs
- XmlSchemaImport.cs
- TemplateBuilder.cs
- GeometryCollection.cs
- XmlAttributeCache.cs
- ResetableIterator.cs
- TextCharacters.cs
- hwndwrapper.cs
- SerializationStore.cs
- BindValidator.cs
- AudioFormatConverter.cs
- Light.cs
- Ref.cs
- FormParameter.cs
- AvTrace.cs
- DataGridViewColumn.cs
- AnnotationObservableCollection.cs
- KnownBoxes.cs
- WebPartCancelEventArgs.cs
- ToolBarButtonClickEvent.cs
- webbrowsersite.cs
- ObjectToken.cs
- ResourceManagerWrapper.cs
- GeneralTransform.cs
- XamlInt32CollectionSerializer.cs
- TypedColumnHandler.cs
- WmlValidatorAdapter.cs
- Point.cs
- ReadOnlyHierarchicalDataSourceView.cs
- GroupBox.cs
- ClaimTypes.cs
- AppliedDeviceFiltersDialog.cs
- _ContextAwareResult.cs
- WebZone.cs
- MessageCredentialType.cs
- ParameterBinding.cs
- FontCollection.cs
- Property.cs
- OpCodes.cs
- ButtonBaseAdapter.cs
- BindingValueChangedEventArgs.cs
- ChildChangedEventArgs.cs
- precedingsibling.cs
- ListControlConvertEventArgs.cs
- GPPOINTF.cs
- NameValuePermission.cs
- DispatcherExceptionFilterEventArgs.cs
- TrueReadOnlyCollection.cs
- ScriptRef.cs
- XmlSchemaInclude.cs
- QilInvoke.cs
- DataGridViewSortCompareEventArgs.cs
- returneventsaver.cs
- UInt64Converter.cs
- UnionExpr.cs
- AssemblyBuilderData.cs
- DetailsViewDesigner.cs