Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- TextEditorTables.cs
- XmlQualifiedName.cs
- Application.cs
- CultureInfo.cs
- ButtonAutomationPeer.cs
- InputBinding.cs
- Track.cs
- BamlLocalizer.cs
- SR.cs
- ColorConverter.cs
- PropertyChangedEventManager.cs
- Tool.cs
- ValidationRuleCollection.cs
- FocusChangedEventArgs.cs
- FormsAuthenticationUser.cs
- SchemaImporterExtensionElementCollection.cs
- ConfigXmlComment.cs
- HtmlUtf8RawTextWriter.cs
- ItemsChangedEventArgs.cs
- CompModSwitches.cs
- CompiledQueryCacheKey.cs
- MobileControlsSectionHelper.cs
- DefinitionBase.cs
- RouteItem.cs
- DataGridTextBoxColumn.cs
- unsafenativemethodstextservices.cs
- SystemResourceKey.cs
- InternalsVisibleToAttribute.cs
- TabPage.cs
- CounterCreationData.cs
- AssociationSetEnd.cs
- ConnectorSelectionGlyph.cs
- ChangePassword.cs
- MailMessageEventArgs.cs
- HtmlElementCollection.cs
- ProfileServiceManager.cs
- LogSwitch.cs
- XmlSchemaGroup.cs
- ArglessEventHandlerProxy.cs
- TextTreeUndoUnit.cs
- TextSimpleMarkerProperties.cs
- ALinqExpressionVisitor.cs
- FontNamesConverter.cs
- IncrementalHitTester.cs
- SoapUnknownHeader.cs
- CacheVirtualItemsEvent.cs
- Vector.cs
- WorkflowExecutor.cs
- XomlCompilerError.cs
- MethodToken.cs
- ConcurrentDictionary.cs
- Int64Converter.cs
- WebPartUserCapability.cs
- ItemCheckEvent.cs
- Pen.cs
- RSAPKCS1KeyExchangeFormatter.cs
- EncryptedPackage.cs
- MarshalByRefObject.cs
- ServicePointManager.cs
- CubicEase.cs
- ToolStripItemBehavior.cs
- CodeStatementCollection.cs
- Win32.cs
- TrackingServices.cs
- SimplePropertyEntry.cs
- DataListGeneralPage.cs
- RtType.cs
- SuppressMessageAttribute.cs
- xmlglyphRunInfo.cs
- TabletDeviceInfo.cs
- TreeWalker.cs
- UnicodeEncoding.cs
- XmlElement.cs
- TreeNodeCollection.cs
- SpeakInfo.cs
- SwitchAttribute.cs
- RegexGroupCollection.cs
- SingleStorage.cs
- _NtlmClient.cs
- DataGridState.cs
- PropertyChange.cs
- TemplateControlCodeDomTreeGenerator.cs
- StateWorkerRequest.cs
- StyleXamlParser.cs
- RSAPKCS1KeyExchangeFormatter.cs
- BaseCollection.cs
- DependencyStoreSurrogate.cs
- IntranetCredentialPolicy.cs
- SqlFunctionAttribute.cs
- WorkflowRuntimeSection.cs
- DataGridCommandEventArgs.cs
- WebPartCollection.cs
- WebPartConnectionCollection.cs
- EventMappingSettingsCollection.cs
- Filter.cs
- AddValidationError.cs
- xml.cs
- GregorianCalendarHelper.cs
- AssociatedControlConverter.cs
- ToolboxItemAttribute.cs