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
- oledbconnectionstring.cs
- DependencyPropertyAttribute.cs
- XPathMultyIterator.cs
- SoapSchemaImporter.cs
- ResourcePropertyMemberCodeDomSerializer.cs
- Helper.cs
- ProfessionalColors.cs
- ListSortDescriptionCollection.cs
- ClientSponsor.cs
- StrokeCollectionDefaultValueFactory.cs
- GZipStream.cs
- DataControlLinkButton.cs
- FontWeightConverter.cs
- SqlCacheDependency.cs
- ConnectionPoint.cs
- ClientSideQueueItem.cs
- MouseActionValueSerializer.cs
- PointKeyFrameCollection.cs
- GuidTagList.cs
- AttributeCollection.cs
- DynamicMethod.cs
- FormView.cs
- FontNamesConverter.cs
- PointValueSerializer.cs
- TypeConverterAttribute.cs
- ProviderCommandInfoUtils.cs
- DataBindEngine.cs
- SystemUnicastIPAddressInformation.cs
- VScrollProperties.cs
- ParameterSubsegment.cs
- MergeEnumerator.cs
- RemotingConfigParser.cs
- StreamFormatter.cs
- input.cs
- TreePrinter.cs
- MatrixTransform.cs
- EffectiveValueEntry.cs
- RemoteWebConfigurationHostStream.cs
- ZipIOModeEnforcingStream.cs
- IOThreadTimer.cs
- TcpWorkerProcess.cs
- LiteralText.cs
- ProxyWebPart.cs
- TextPenaltyModule.cs
- HwndMouseInputProvider.cs
- CounterCreationData.cs
- DataError.cs
- Regex.cs
- Margins.cs
- LoginCancelEventArgs.cs
- WebUtil.cs
- GridViewColumn.cs
- DataTable.cs
- HttpPostedFile.cs
- DockProviderWrapper.cs
- ParameterDataSourceExpression.cs
- AliasGenerator.cs
- DataDocumentXPathNavigator.cs
- DocumentApplicationJournalEntry.cs
- SqlTypesSchemaImporter.cs
- TextRunProperties.cs
- ControllableStoryboardAction.cs
- DbDataRecord.cs
- XmlRawWriter.cs
- DataRowChangeEvent.cs
- TextDecorationCollection.cs
- ManagementQuery.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- FunctionDescription.cs
- XmlSchemaException.cs
- BaseCodeDomTreeGenerator.cs
- ActiveXContainer.cs
- DuplicateContext.cs
- TextElementAutomationPeer.cs
- HtmlTableCell.cs
- DataServiceSaveChangesEventArgs.cs
- SectionInformation.cs
- StringUtil.cs
- HtmlElementEventArgs.cs
- MenuAdapter.cs
- MappingSource.cs
- webclient.cs
- PointAnimationClockResource.cs
- TypedTableBase.cs
- NamespaceCollection.cs
- MailMessage.cs
- HtmlEncodedRawTextWriter.cs
- DataServiceProcessingPipeline.cs
- DataTableMappingCollection.cs
- PresentationSource.cs
- VisualBasic.cs
- WebPartDescriptionCollection.cs
- ReachDocumentReferenceSerializerAsync.cs
- AvTraceDetails.cs
- TemplateKeyConverter.cs
- DrawingAttributes.cs
- Attribute.cs
- HttpFileCollectionBase.cs
- GACMembershipCondition.cs
- RelationshipEndCollection.cs