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
- LoadedOrUnloadedOperation.cs
- VerticalAlignConverter.cs
- SqlStatistics.cs
- DataGridViewImageCell.cs
- DesignerEventService.cs
- ModelToObjectValueConverter.cs
- XmlNodeChangedEventArgs.cs
- EntityDataSourceViewSchema.cs
- ConditionalAttribute.cs
- SHA1Managed.cs
- ThousandthOfEmRealPoints.cs
- EventWaitHandle.cs
- RawTextInputReport.cs
- XPathDescendantIterator.cs
- TraceContext.cs
- TcpTransportManager.cs
- OneOfTypeConst.cs
- AutoResizedEvent.cs
- Array.cs
- BitmapEffectDrawing.cs
- InstanceDataCollection.cs
- FilteredReadOnlyMetadataCollection.cs
- IpcPort.cs
- PreservationFileWriter.cs
- DesignerGeometryHelper.cs
- LabelExpression.cs
- CompModSwitches.cs
- StringArrayConverter.cs
- Int16Storage.cs
- MetadataReference.cs
- ControlLocalizer.cs
- CustomTypeDescriptor.cs
- ResourceReferenceExpression.cs
- ContractUtils.cs
- Drawing.cs
- WebPartTransformerAttribute.cs
- CardSpaceSelector.cs
- CodeGeneratorOptions.cs
- JsonQNameDataContract.cs
- CatalogPartCollection.cs
- XmlSchemaSubstitutionGroup.cs
- BindingMAnagerBase.cs
- IndicCharClassifier.cs
- MimeReflector.cs
- NumericExpr.cs
- XPathParser.cs
- TypeSystemProvider.cs
- DesignerActionListCollection.cs
- Decimal.cs
- CreatingCookieEventArgs.cs
- TreeViewBindingsEditorForm.cs
- XmlTextReader.cs
- MessageQueueAccessControlEntry.cs
- WsatTransactionInfo.cs
- RenderDataDrawingContext.cs
- TextRunCacheImp.cs
- EntityTransaction.cs
- FieldNameLookup.cs
- Knowncolors.cs
- PartialCachingAttribute.cs
- AuthStoreRoleProvider.cs
- AssemblyAttributesGoHere.cs
- RelatedImageListAttribute.cs
- RoutedEventArgs.cs
- ImpersonateTokenRef.cs
- ProviderException.cs
- GlyphRunDrawing.cs
- ComponentResourceManager.cs
- CaseStatement.cs
- ConnectionManagementElementCollection.cs
- _AuthenticationState.cs
- WindowsScrollBarBits.cs
- InputScopeManager.cs
- ApplicationSecurityInfo.cs
- HyperLinkColumn.cs
- InstallerTypeAttribute.cs
- QueryGeneratorBase.cs
- ComponentChangedEvent.cs
- Point.cs
- SmiConnection.cs
- TextChangedEventArgs.cs
- SerializationSectionGroup.cs
- DataServiceStreamProviderWrapper.cs
- NumericExpr.cs
- ConsoleCancelEventArgs.cs
- Win32Native.cs
- ZeroOpNode.cs
- AutomationPatternInfo.cs
- Int16AnimationUsingKeyFrames.cs
- RPIdentityRequirement.cs
- ToolStripOverflow.cs
- RecordBuilder.cs
- CryptoApi.cs
- EmptyStringExpandableObjectConverter.cs
- PolyLineSegmentFigureLogic.cs
- DiscoveryServiceExtension.cs
- ListBoxItemWrapperAutomationPeer.cs
- ListViewGroup.cs
- InternalBase.cs
- codemethodreferenceexpression.cs