Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ColorTransform.cs
- XmlAttributeAttribute.cs
- RowToFieldTransformer.cs
- ToolStripDropDownClosedEventArgs.cs
- NumericPagerField.cs
- ExceptionUtility.cs
- TempEnvironment.cs
- ClockGroup.cs
- Mutex.cs
- QueueProcessor.cs
- ApplicationDirectory.cs
- PropertyGroupDescription.cs
- mactripleDES.cs
- PartitionedDataSource.cs
- XmlFormatExtensionPointAttribute.cs
- RuleDefinitions.cs
- panel.cs
- Model3DGroup.cs
- DataGridViewUtilities.cs
- CodeGenerator.cs
- PagerStyle.cs
- FragmentQueryProcessor.cs
- SqlMethodAttribute.cs
- EpmCustomContentWriterNodeData.cs
- TreeNodeStyleCollection.cs
- ElementNotEnabledException.cs
- OperationInvokerBehavior.cs
- Interlocked.cs
- JumpPath.cs
- SerializationInfoEnumerator.cs
- TreeView.cs
- LinqDataSourceSelectEventArgs.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- CompiledQueryCacheKey.cs
- Attributes.cs
- SafeProcessHandle.cs
- XmlWellformedWriter.cs
- MexNamedPipeBindingElement.cs
- CompilerParameters.cs
- DrawingAttributes.cs
- WebPartVerb.cs
- RijndaelManagedTransform.cs
- TiffBitmapEncoder.cs
- PageThemeParser.cs
- AutoResetEvent.cs
- DesignerProperties.cs
- ObjectViewFactory.cs
- TreeBuilderBamlTranslator.cs
- SmiTypedGetterSetter.cs
- JsonReader.cs
- SR.cs
- ExpressionStringBuilder.cs
- ChannelRequirements.cs
- NativeMethodsOther.cs
- MetadataProperty.cs
- InputLanguageProfileNotifySink.cs
- FileDetails.cs
- CommandID.cs
- ExtractedStateEntry.cs
- RuntimeArgument.cs
- ServiceBusyException.cs
- SqlRecordBuffer.cs
- HtmlAnchor.cs
- MetadataStore.cs
- TemplateControlCodeDomTreeGenerator.cs
- DateTimeSerializationSection.cs
- ExceptionRoutedEventArgs.cs
- ScriptControlDescriptor.cs
- Convert.cs
- ArgumentOutOfRangeException.cs
- CustomGrammar.cs
- InputElement.cs
- DeviceSpecific.cs
- Thickness.cs
- LocalizableResourceBuilder.cs
- IPAddress.cs
- CompilerParameters.cs
- ProxyHwnd.cs
- QualificationDataAttribute.cs
- IgnoreSection.cs
- StrongTypingException.cs
- StylusPlugInCollection.cs
- WaitForChangedResult.cs
- TextRange.cs
- InputLangChangeEvent.cs
- _ConnectionGroup.cs
- TextEncodedRawTextWriter.cs
- SqlTopReducer.cs
- Formatter.cs
- InstancePersistenceCommand.cs
- DesignerActionMethodItem.cs
- SqlClientFactory.cs
- AssociationTypeEmitter.cs
- HttpRuntime.cs
- ContentType.cs
- FactoryRecord.cs
- DSASignatureFormatter.cs
- Authorization.cs
- FastPropertyAccessor.cs
- DataTableNameHandler.cs