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
- ArraySubsetEnumerator.cs
- MetadataCache.cs
- RemotingConfigParser.cs
- MultiSelectRootGridEntry.cs
- ObjectListCommandCollection.cs
- UrlMapping.cs
- ViewGenResults.cs
- DataGridViewTopRowAccessibleObject.cs
- NamedPermissionSet.cs
- FrameworkElement.cs
- GrammarBuilderPhrase.cs
- RichTextBoxContextMenu.cs
- CacheEntry.cs
- ScriptControlDescriptor.cs
- CodeTypeParameter.cs
- HttpRequest.cs
- TriggerActionCollection.cs
- VideoDrawing.cs
- followingquery.cs
- TypedElement.cs
- HttpVersion.cs
- Timer.cs
- ListViewPagedDataSource.cs
- SectionVisual.cs
- DataTableMappingCollection.cs
- SerialReceived.cs
- XmlSchema.cs
- IISMapPath.cs
- BitmapEffectGroup.cs
- RadioButton.cs
- DocumentPageViewAutomationPeer.cs
- ButtonStandardAdapter.cs
- EntityProviderFactory.cs
- SystemDropShadowChrome.cs
- ButtonPopupAdapter.cs
- FormatterServices.cs
- SetterBase.cs
- ReflectionHelper.cs
- PlanCompiler.cs
- AssemblyInfo.cs
- PropertyGrid.cs
- TextRange.cs
- ObjectReferenceStack.cs
- AudioFormatConverter.cs
- EventRoute.cs
- autovalidator.cs
- AlgoModule.cs
- ContractsBCL.cs
- HttpVersion.cs
- PriorityChain.cs
- XmlSchemaSimpleContentRestriction.cs
- XmlReflectionMember.cs
- BaseDataBoundControlDesigner.cs
- WebPartConnectionsConnectVerb.cs
- SemanticTag.cs
- Logging.cs
- CqlBlock.cs
- ItemType.cs
- VisualCollection.cs
- TemplateKeyConverter.cs
- EncodingFallbackAwareXmlTextWriter.cs
- PolyBezierSegment.cs
- FillErrorEventArgs.cs
- OLEDB_Util.cs
- CellParagraph.cs
- StringKeyFrameCollection.cs
- ToolZone.cs
- ImageBrush.cs
- OracleEncoding.cs
- DataBindingList.cs
- GlobalizationAssembly.cs
- DataSet.cs
- DataSourceCollectionBase.cs
- ScaleTransform3D.cs
- XmlValidatingReader.cs
- RuleAttributes.cs
- UnsafeNativeMethods.cs
- CustomError.cs
- CriticalFileToken.cs
- StandardOleMarshalObject.cs
- PipelineModuleStepContainer.cs
- GroupBoxAutomationPeer.cs
- DragCompletedEventArgs.cs
- EntityDataSourceMemberPath.cs
- GridViewDeletedEventArgs.cs
- CommandPlan.cs
- OptimizedTemplateContent.cs
- XmlValidatingReaderImpl.cs
- JapaneseCalendar.cs
- ComboBoxDesigner.cs
- CheckBoxStandardAdapter.cs
- filewebresponse.cs
- XmlSchemaInclude.cs
- HebrewNumber.cs
- Image.cs
- DynamicDataResources.Designer.cs
- SystemKeyConverter.cs
- nulltextnavigator.cs
- SoapIncludeAttribute.cs
- CTreeGenerator.cs