Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProfileEventArgs.cs
- GenericRootAutomationPeer.cs
- TypeUsage.cs
- SimpleExpression.cs
- DBBindings.cs
- FunctionUpdateCommand.cs
- TraceHandler.cs
- ScriptResourceHandler.cs
- PerfCounters.cs
- TerminatorSinks.cs
- TextProperties.cs
- SafeHGlobalHandleCritical.cs
- LockCookie.cs
- SnapLine.cs
- CodeMemberProperty.cs
- EffectiveValueEntry.cs
- TreeNodeClickEventArgs.cs
- FilteredSchemaElementLookUpTable.cs
- PropertyEmitterBase.cs
- sqlpipe.cs
- MediaContextNotificationWindow.cs
- Descriptor.cs
- CompilerGlobalScopeAttribute.cs
- UndirectedGraph.cs
- XmlImplementation.cs
- Point3DIndependentAnimationStorage.cs
- ListViewPagedDataSource.cs
- UInt64Storage.cs
- WebPartDeleteVerb.cs
- MarkerProperties.cs
- IndexedString.cs
- DynamicEntity.cs
- BindUriHelper.cs
- PerformanceCounterPermissionEntryCollection.cs
- _CommandStream.cs
- DictionarySectionHandler.cs
- NavigationPropertyEmitter.cs
- RsaSecurityTokenAuthenticator.cs
- Viewport3DAutomationPeer.cs
- LineGeometry.cs
- StopRoutingHandler.cs
- DataFieldCollectionEditor.cs
- HelpProvider.cs
- DocumentGridPage.cs
- GPPOINTF.cs
- _ProxyChain.cs
- XmlException.cs
- DesignerView.Commands.cs
- PriorityQueue.cs
- ClientSettingsSection.cs
- HtmlContainerControl.cs
- ProjectionPath.cs
- WebConfigurationManager.cs
- ComponentResourceManager.cs
- PublisherMembershipCondition.cs
- NonSerializedAttribute.cs
- commandenforcer.cs
- DocumentPageTextView.cs
- DataGridViewTopLeftHeaderCell.cs
- XhtmlConformanceSection.cs
- BitmapVisualManager.cs
- basecomparevalidator.cs
- XmlExceptionHelper.cs
- CompilationSection.cs
- CreateRefExpr.cs
- AdapterSwitches.cs
- DataBindingExpressionBuilder.cs
- APCustomTypeDescriptor.cs
- ElementMarkupObject.cs
- AppSettingsSection.cs
- DataSourceHelper.cs
- MDIClient.cs
- ContentPathSegment.cs
- EnumValidator.cs
- WebColorConverter.cs
- CodeTypeMember.cs
- FileUpload.cs
- GeneralTransform3DTo2D.cs
- ListDictionaryInternal.cs
- OrderPreservingPipeliningSpoolingTask.cs
- CharacterBufferReference.cs
- TextViewBase.cs
- SqlUtil.cs
- DetailsViewModeEventArgs.cs
- Menu.cs
- ObjectDataSourceSelectingEventArgs.cs
- ExtendedPropertyCollection.cs
- AccessDataSourceWizardForm.cs
- SafeLibraryHandle.cs
- SspiNegotiationTokenProviderState.cs
- DataGridViewCellLinkedList.cs
- DataGridViewControlCollection.cs
- BitmapData.cs
- WindowsScrollBarBits.cs
- ApplicationSettingsBase.cs
- SqlParameter.cs
- RuntimeConfigLKG.cs
- DeviceContexts.cs
- BasicKeyConstraint.cs
- TextInfo.cs