Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / CompilerServices / RuntimeCompatibilityAttribute.cs / 1305376 / 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
- XmlSequenceWriter.cs
- IssuedTokenClientCredential.cs
- WorkflowElementDialogWindow.xaml.cs
- SerialReceived.cs
- RemoteWebConfigurationHostServer.cs
- _TLSstream.cs
- SecurityPermission.cs
- ClientRuntimeConfig.cs
- ContainerActivationHelper.cs
- webclient.cs
- grammarelement.cs
- BasicCellRelation.cs
- DataServiceExpressionVisitor.cs
- SQLInt32Storage.cs
- dataobject.cs
- WorkflowCompensationBehavior.cs
- XmlParserContext.cs
- SafeEventLogReadHandle.cs
- MimeBasePart.cs
- DecoderBestFitFallback.cs
- InnerItemCollectionView.cs
- smtppermission.cs
- MenuScrollingVisibilityConverter.cs
- Crc32Helper.cs
- WebPartEditVerb.cs
- StopRoutingHandler.cs
- ColumnClickEvent.cs
- ButtonBase.cs
- FileSecurity.cs
- CollaborationHelperFunctions.cs
- DragEvent.cs
- QilInvoke.cs
- ParsedAttributeCollection.cs
- OleDbPermission.cs
- LayoutEngine.cs
- PerfService.cs
- _ContextAwareResult.cs
- ObjectDataSourceDisposingEventArgs.cs
- SiteMapDataSourceDesigner.cs
- AmbiguousMatchException.cs
- BitmapEffectDrawing.cs
- CompositeCollectionView.cs
- SingleBodyParameterMessageFormatter.cs
- basenumberconverter.cs
- SecurityDescriptor.cs
- MouseOverProperty.cs
- GenericTypeParameterBuilder.cs
- PartialArray.cs
- GridEntry.cs
- TableProvider.cs
- TraceUtils.cs
- CatalogZoneBase.cs
- CacheChildrenQuery.cs
- ConvertTextFrag.cs
- EntitySetRetriever.cs
- LocalBuilder.cs
- Material.cs
- ModuleBuilderData.cs
- StaticResourceExtension.cs
- DefaultValueConverter.cs
- codemethodreferenceexpression.cs
- WebPartVerb.cs
- DataSourceHelper.cs
- DelegatingHeader.cs
- ConstraintStruct.cs
- DataSourceControl.cs
- HashSetEqualityComparer.cs
- NavigatingCancelEventArgs.cs
- PartitionResolver.cs
- OrthographicCamera.cs
- ValueTable.cs
- Point.cs
- MatcherBuilder.cs
- XamlBrushSerializer.cs
- RectAnimationClockResource.cs
- ThreadInterruptedException.cs
- HttpListenerContext.cs
- AutoSizeToolBoxItem.cs
- WebPartConnectionsEventArgs.cs
- SQLBytes.cs
- BufferedGraphicsManager.cs
- FixedFindEngine.cs
- TypedReference.cs
- SyndicationSerializer.cs
- GcSettings.cs
- EdgeModeValidation.cs
- DataGridPagerStyle.cs
- DiscoveryDocument.cs
- ResourceProviderFactory.cs
- DataBoundLiteralControl.cs
- AllowedAudienceUriElementCollection.cs
- SchemaImporterExtension.cs
- VisualBrush.cs
- CultureTableRecord.cs
- Point3DCollection.cs
- BezierSegment.cs
- TextElement.cs
- ToolStripDropDown.cs
- EventArgs.cs
- DependencyObjectCodeDomSerializer.cs