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
- WebPartManagerInternals.cs
- ExpandoClass.cs
- PropertyCollection.cs
- FixedSOMLineRanges.cs
- FixedHighlight.cs
- _ListenerRequestStream.cs
- DoubleKeyFrameCollection.cs
- StatusBarPanelClickEvent.cs
- WindowsTab.cs
- SchemaComplexType.cs
- PropertyCondition.cs
- SqlDataSourceCommandEventArgs.cs
- TabletCollection.cs
- HtmlButton.cs
- ExceptionUtil.cs
- DataBinding.cs
- DataTableCollection.cs
- BitmapCacheBrush.cs
- FamilyMap.cs
- ContentType.cs
- ComplexTypeEmitter.cs
- CodeTypeReference.cs
- SQLGuidStorage.cs
- NavigationPropertySingletonExpression.cs
- OleDbError.cs
- RSAPKCS1SignatureFormatter.cs
- OneToOneMappingSerializer.cs
- COMException.cs
- DbProviderSpecificTypePropertyAttribute.cs
- PagePropertiesChangingEventArgs.cs
- BamlVersionHeader.cs
- DataServiceConfiguration.cs
- ToolConsole.cs
- NamespaceImport.cs
- AttributeData.cs
- WebPartConnectionsConfigureVerb.cs
- CrossContextChannel.cs
- WorkItem.cs
- NullableDecimalMinMaxAggregationOperator.cs
- Ipv6Element.cs
- dataobject.cs
- XmlCharCheckingWriter.cs
- DataGridViewCheckBoxColumn.cs
- BaseDataBoundControl.cs
- PathFigureCollectionValueSerializer.cs
- XmlDataProvider.cs
- _CacheStreams.cs
- WebFaultException.cs
- GlyphRun.cs
- XmlSchemaChoice.cs
- SerializerDescriptor.cs
- OdbcConnectionStringbuilder.cs
- DecimalAnimation.cs
- SendReply.cs
- Symbol.cs
- sqlmetadatafactory.cs
- ButtonField.cs
- SearchForVirtualItemEventArgs.cs
- OleDbConnectionInternal.cs
- XmlLangPropertyAttribute.cs
- ImageMap.cs
- ReferentialConstraint.cs
- GeometryGroup.cs
- BindingWorker.cs
- PreservationFileWriter.cs
- XmlStreamNodeWriter.cs
- _Win32.cs
- BinaryQueryOperator.cs
- SqlDataSourceView.cs
- RootContext.cs
- TextElementEnumerator.cs
- DataBoundLiteralControl.cs
- UndirectedGraph.cs
- XmlBindingWorker.cs
- SQLGuidStorage.cs
- BrowserInteropHelper.cs
- PasswordRecovery.cs
- InvokePatternIdentifiers.cs
- EventSetter.cs
- NonBatchDirectoryCompiler.cs
- UnsafePeerToPeerMethods.cs
- PopupEventArgs.cs
- EdmFunctions.cs
- SettingsPropertyNotFoundException.cs
- ContainerControl.cs
- NavigationProperty.cs
- EndEvent.cs
- DataControlFieldCell.cs
- LogLogRecordEnumerator.cs
- DesignerTextViewAdapter.cs
- TypefaceMetricsCache.cs
- WebPartEditorOkVerb.cs
- SettingsBindableAttribute.cs
- WindowPattern.cs
- Rotation3DAnimationBase.cs
- AttributeData.cs
- PolicyStatement.cs
- EmptyEnumerator.cs
- BrowserCapabilitiesFactory.cs
- HealthMonitoringSectionHelper.cs