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
- ManifestBasedResourceGroveler.cs
- DataPointer.cs
- TreeView.cs
- ErrorInfoXmlDocument.cs
- TTSEngineProxy.cs
- ItemsChangedEventArgs.cs
- AsnEncodedData.cs
- WsdlBuildProvider.cs
- ProgressBarRenderer.cs
- Bits.cs
- ExtensionSimplifierMarkupObject.cs
- Matrix3D.cs
- HtmlButton.cs
- LineServicesRun.cs
- UrlPropertyAttribute.cs
- HitTestResult.cs
- FeatureManager.cs
- UrlMappingsSection.cs
- Comparer.cs
- StandardBindingCollectionElement.cs
- InteropAutomationProvider.cs
- IPCCacheManager.cs
- UnsafeNativeMethods.cs
- SecurityProtocolFactory.cs
- ContractReference.cs
- SqlProviderUtilities.cs
- Random.cs
- DataGridCellInfo.cs
- CheckBoxStandardAdapter.cs
- HMACSHA1.cs
- PipelineModuleStepContainer.cs
- IfElseDesigner.xaml.cs
- IPPacketInformation.cs
- TrackingProfile.cs
- GroupQuery.cs
- FileLogRecordStream.cs
- BinaryReader.cs
- FrugalMap.cs
- InvalidOleVariantTypeException.cs
- FontStretches.cs
- xmlglyphRunInfo.cs
- MessageQueuePermissionEntry.cs
- EntityContainerAssociationSet.cs
- JsonDeserializer.cs
- EndpointDiscoveryMetadata.cs
- PropertyMap.cs
- RequestCachingSection.cs
- MulticastDelegate.cs
- XsltLoader.cs
- Size.cs
- Base64Stream.cs
- OutputCacheProfileCollection.cs
- TypeBinaryExpression.cs
- EDesignUtil.cs
- ConnectionStringsSection.cs
- DbParameterCollection.cs
- addressfiltermode.cs
- BaseInfoTable.cs
- AuthenticationManager.cs
- StylusPlugin.cs
- TypeListConverter.cs
- AnimationClockResource.cs
- ListViewTableRow.cs
- ListViewAutomationPeer.cs
- SecurityContext.cs
- PagedDataSource.cs
- SafeWaitHandle.cs
- AssemblyAttributesGoHere.cs
- SchemaMerger.cs
- UserControlCodeDomTreeGenerator.cs
- InstancePersistenceCommand.cs
- PointKeyFrameCollection.cs
- DataGridToolTip.cs
- SoapIncludeAttribute.cs
- RawMouseInputReport.cs
- UIElement.cs
- Run.cs
- CustomTypeDescriptor.cs
- TraceHandlerErrorFormatter.cs
- TextFormatterHost.cs
- SchemaNames.cs
- JsonUriDataContract.cs
- FormViewCommandEventArgs.cs
- HttpCookiesSection.cs
- XdrBuilder.cs
- AccessViolationException.cs
- XmlNavigatorStack.cs
- DesignBindingPropertyDescriptor.cs
- ConfigXmlAttribute.cs
- Quaternion.cs
- WizardStepBase.cs
- UmAlQuraCalendar.cs
- StorageMappingItemCollection.cs
- ModelPropertyDescriptor.cs
- LinkButton.cs
- SortAction.cs
- TypeElementCollection.cs
- OdbcStatementHandle.cs
- ViewStateException.cs
- DomainConstraint.cs