Code:
/ FX-1434 / FX-1434 / 1.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
- XmlSerializableReader.cs
- HostingEnvironment.cs
- AssemblyCollection.cs
- HtmlTable.cs
- UInt16.cs
- ContentOperations.cs
- SqlDataReader.cs
- Win32.cs
- WebRequestModulesSection.cs
- DataGridViewCellFormattingEventArgs.cs
- Transform3DGroup.cs
- ClientApiGenerator.cs
- EntityDataSource.cs
- OleDbCommand.cs
- MethodAccessException.cs
- PowerStatus.cs
- ConnectionStringSettings.cs
- ResourceContainer.cs
- MetaChildrenColumn.cs
- GridViewRowEventArgs.cs
- OleDbSchemaGuid.cs
- GlyphingCache.cs
- ObjectDataSourceMethodEditor.cs
- TextSelectionHelper.cs
- WasEndpointConfigContainer.cs
- CollectionConverter.cs
- ParsedRoute.cs
- NativeObjectSecurity.cs
- UriScheme.cs
- TextContainerChangedEventArgs.cs
- ProxyElement.cs
- IsolationInterop.cs
- ProfessionalColors.cs
- ConvertEvent.cs
- LogicalCallContext.cs
- CatalogPartCollection.cs
- DesignerForm.cs
- COM2ExtendedBrowsingHandler.cs
- StylusTip.cs
- MatrixTransform.cs
- SEHException.cs
- Maps.cs
- RectValueSerializer.cs
- ComponentCommands.cs
- PeerValidationBehavior.cs
- PropertyMap.cs
- AtomContentProperty.cs
- CodeAssignStatement.cs
- CodeEventReferenceExpression.cs
- NumericPagerField.cs
- RuleSettings.cs
- infer.cs
- Timer.cs
- OLEDB_Util.cs
- UrlPropertyAttribute.cs
- Currency.cs
- SystemWebCachingSectionGroup.cs
- ReadOnlyObservableCollection.cs
- WarningException.cs
- DataBoundControlAdapter.cs
- XamlGridLengthSerializer.cs
- VirtualDirectoryMappingCollection.cs
- WinFormsUtils.cs
- InstanceKeyNotReadyException.cs
- XPathDocumentNavigator.cs
- LambdaReference.cs
- Matrix3D.cs
- SiteOfOriginPart.cs
- RealizationContext.cs
- PropertyManager.cs
- TdsParserStaticMethods.cs
- EmptyElement.cs
- KeyToListMap.cs
- PathSegment.cs
- ColumnResult.cs
- Predicate.cs
- ScriptControlManager.cs
- TabRenderer.cs
- ClientRolePrincipal.cs
- GroupItemAutomationPeer.cs
- OletxResourceManager.cs
- __ConsoleStream.cs
- HashRepartitionEnumerator.cs
- MemberProjectedSlot.cs
- CacheForPrimitiveTypes.cs
- SafeSerializationManager.cs
- PreloadHost.cs
- XPathNodeIterator.cs
- XmlCharCheckingWriter.cs
- WorkflowDurableInstance.cs
- ClassDataContract.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- ValueTypeFixupInfo.cs
- HelpHtmlBuilder.cs
- DataServiceQueryProvider.cs
- RoutedPropertyChangedEventArgs.cs
- HScrollProperties.cs
- CellParaClient.cs
- AnnotationService.cs
- BaseParser.cs