Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Base / MS / Internal / CriticalExceptions.cs / 1 / CriticalExceptions.cs
using System; #if PBTCOMPILER namespace MS.Internal.Markup #else using MS.Internal.WindowsBase; // FriendAccessAllowed namespace MS.Internal #endif { #if !PBTCOMPILER [FriendAccessAllowed] #endif internal static class CriticalExceptions { #if !PBTCOMPILER [FriendAccessAllowed] #endif internal static bool IsCriticalException(Exception ex) { return ex is NullReferenceException || ex is StackOverflowException || ex is OutOfMemoryException || ex is System.Threading.ThreadAbortException || ex is System.Runtime.InteropServices.SEHException || ex is System.Security.SecurityException; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System; #if PBTCOMPILER namespace MS.Internal.Markup #else using MS.Internal.WindowsBase; // FriendAccessAllowed namespace MS.Internal #endif { #if !PBTCOMPILER [FriendAccessAllowed] #endif internal static class CriticalExceptions { #if !PBTCOMPILER [FriendAccessAllowed] #endif internal static bool IsCriticalException(Exception ex) { return ex is NullReferenceException || ex is StackOverflowException || ex is OutOfMemoryException || ex is System.Threading.ThreadAbortException || ex is System.Runtime.InteropServices.SEHException || ex is System.Security.SecurityException; } } } // 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
- SchemaTypeEmitter.cs
- ExpressionLexer.cs
- RelativeSource.cs
- EmbeddedObject.cs
- Imaging.cs
- RectangleGeometry.cs
- StatusBarItem.cs
- AuthenticationModeHelper.cs
- MimeTextImporter.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- PlanCompiler.cs
- WebMessageEncodingElement.cs
- XmlSchemaIdentityConstraint.cs
- FrameworkElementFactory.cs
- PersonalizableTypeEntry.cs
- HttpRuntimeSection.cs
- WindowsFormsLinkLabel.cs
- NotFiniteNumberException.cs
- HttpConfigurationSystem.cs
- WarningException.cs
- ProcessHost.cs
- CheckBox.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- StylusPointProperties.cs
- SecurityState.cs
- CompareValidator.cs
- AsyncStreamReader.cs
- PropertyManager.cs
- DataBoundControl.cs
- mediaclock.cs
- UpDownBase.cs
- DetailsViewUpdatedEventArgs.cs
- PageFunction.cs
- SpellerInterop.cs
- Quaternion.cs
- SecurityTokenAttachmentMode.cs
- SizeFConverter.cs
- AnnotationResourceCollection.cs
- Vector.cs
- SetIterators.cs
- UseManagedPresentationBindingElement.cs
- RewritingValidator.cs
- QueryableFilterUserControl.cs
- XmlWriterSettings.cs
- TdsParserHelperClasses.cs
- Accessors.cs
- IndentTextWriter.cs
- InternalTypeHelper.cs
- DefaultMergeHelper.cs
- DrawingGroupDrawingContext.cs
- SqlCacheDependencySection.cs
- NumberFunctions.cs
- RadioButtonStandardAdapter.cs
- DataGridViewTextBoxCell.cs
- ObjectStateManager.cs
- PublishLicense.cs
- ByteKeyFrameCollection.cs
- TransformedBitmap.cs
- HttpProtocolReflector.cs
- ObjectParameter.cs
- TableCellCollection.cs
- DataContext.cs
- HttpDebugHandler.cs
- AsymmetricKeyExchangeFormatter.cs
- SqlConnectionHelper.cs
- initElementDictionary.cs
- Vector.cs
- SqlMethodCallConverter.cs
- CornerRadius.cs
- NameValueFileSectionHandler.cs
- ProviderConnectionPoint.cs
- MessageSecurityOverTcpElement.cs
- MergablePropertyAttribute.cs
- TimeoutHelper.cs
- MissingSatelliteAssemblyException.cs
- RegistryPermission.cs
- ResourceDictionary.cs
- RuleInfoComparer.cs
- Type.cs
- XmlSchemaNotation.cs
- UnauthorizedAccessException.cs
- SqlException.cs
- TdsParserHelperClasses.cs
- XmlException.cs
- NoPersistProperty.cs
- CalendarDateChangedEventArgs.cs
- Axis.cs
- OdbcFactory.cs
- WmlMobileTextWriter.cs
- ResponseStream.cs
- SoapAttributeAttribute.cs
- ValidationErrorInfo.cs
- GroupItemAutomationPeer.cs
- KeyboardEventArgs.cs
- CompilationLock.cs
- SrgsNameValueTag.cs
- SecurityHeaderLayout.cs
- WpfXamlLoader.cs
- DataAdapter.cs
- FontWeights.cs