Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StringArrayConverter.cs
- CommandCollectionEditor.cs
- PresentationTraceSources.cs
- CalendarDataBindingHandler.cs
- SchemaMapping.cs
- FlowLayoutPanel.cs
- SqlErrorCollection.cs
- SmtpException.cs
- TextReader.cs
- IApplicationTrustManager.cs
- DataBoundControlDesigner.cs
- Registry.cs
- ISFClipboardData.cs
- DesignerObject.cs
- BrowsableAttribute.cs
- MasterPageParser.cs
- PropertyInformationCollection.cs
- ReliabilityContractAttribute.cs
- DirectoryRedirect.cs
- InvalidWMPVersionException.cs
- XamlInt32CollectionSerializer.cs
- StateDesigner.cs
- XmlBoundElement.cs
- MarkupCompilePass1.cs
- OrderedDictionaryStateHelper.cs
- PlanCompiler.cs
- InternalBufferManager.cs
- DataGridViewTextBoxCell.cs
- Win32.cs
- WriteFileContext.cs
- TableCellCollection.cs
- Attribute.cs
- ObjectStateManager.cs
- ClientEventManager.cs
- SmtpClient.cs
- CursorConverter.cs
- SmtpNtlmAuthenticationModule.cs
- NavigationCommands.cs
- TimeManager.cs
- ResourceManager.cs
- Simplifier.cs
- WorkflowTraceTransfer.cs
- XmlCharacterData.cs
- CachedCompositeFamily.cs
- ListBoxItemWrapperAutomationPeer.cs
- WebService.cs
- EncoderBestFitFallback.cs
- CompiledRegexRunner.cs
- CLRBindingWorker.cs
- AuthenticationServiceManager.cs
- CannotUnloadAppDomainException.cs
- TransportManager.cs
- WorkerRequest.cs
- StdValidatorsAndConverters.cs
- XmlException.cs
- SafeNativeMethods.cs
- WebPartsSection.cs
- Lease.cs
- CheckBox.cs
- XmlSchemaSequence.cs
- FormatterServices.cs
- SizeIndependentAnimationStorage.cs
- RSAOAEPKeyExchangeFormatter.cs
- ZipFileInfoCollection.cs
- MessageContractExporter.cs
- ListBase.cs
- CurrentChangingEventArgs.cs
- VersionedStreamOwner.cs
- SiteMapNodeItem.cs
- GZipUtils.cs
- RawStylusSystemGestureInputReport.cs
- XmlNodeList.cs
- QueryReaderSettings.cs
- ConnectionManagementElementCollection.cs
- Encoding.cs
- FtpWebRequest.cs
- EntityEntry.cs
- FrameSecurityDescriptor.cs
- XmlSchemaType.cs
- FrugalMap.cs
- CaseKeyBox.xaml.cs
- EFDataModelProvider.cs
- IndexerNameAttribute.cs
- VisualTreeUtils.cs
- DataControlExtensions.cs
- MediaContextNotificationWindow.cs
- LeaseManager.cs
- CodeCatchClause.cs
- ResXResourceSet.cs
- UnknownWrapper.cs
- ClientFormsAuthenticationCredentials.cs
- UniqueContractNameValidationBehavior.cs
- BamlLocalizableResourceKey.cs
- FrameSecurityDescriptor.cs
- QuadraticBezierSegment.cs
- LogEntryHeaderSerializer.cs
- SystemIPv6InterfaceProperties.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- TrailingSpaceComparer.cs
- wmiprovider.cs