Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- MailBnfHelper.cs
- RowSpanVector.cs
- SingleResultAttribute.cs
- UnsafeCollabNativeMethods.cs
- Pkcs7Recipient.cs
- SymbolPair.cs
- IISMapPath.cs
- CodeEntryPointMethod.cs
- Timer.cs
- BindingCompleteEventArgs.cs
- StringValueConverter.cs
- IntranetCredentialPolicy.cs
- TreeNode.cs
- ProcessHost.cs
- PrimitiveXmlSerializers.cs
- WebPartMenuStyle.cs
- SystemIcmpV4Statistics.cs
- Msmq3PoisonHandler.cs
- NonVisualControlAttribute.cs
- GenericArgumentsUpdater.cs
- SqlDataSourceStatusEventArgs.cs
- ToolboxDataAttribute.cs
- SystemKeyConverter.cs
- StringArrayConverter.cs
- AsyncCodeActivityContext.cs
- LineBreakRecord.cs
- ObjectResult.cs
- ResourceContainer.cs
- printdlgexmarshaler.cs
- DetailsViewRowCollection.cs
- SQLInt64Storage.cs
- Application.cs
- EpmHelper.cs
- ContentElement.cs
- PackagePart.cs
- DataGridViewImageCell.cs
- MaskedTextBox.cs
- SqlDataSourceStatusEventArgs.cs
- _SSPISessionCache.cs
- DBConnection.cs
- IItemProperties.cs
- RowCache.cs
- EventListenerClientSide.cs
- GridViewColumnHeader.cs
- ListBox.cs
- CodeCommentStatement.cs
- BStrWrapper.cs
- TextEncodedRawTextWriter.cs
- KeyTimeConverter.cs
- WeakHashtable.cs
- CharKeyFrameCollection.cs
- StringUtil.cs
- SplitterPanel.cs
- ArrayElementGridEntry.cs
- WasEndpointConfigContainer.cs
- VScrollBar.cs
- PerfCounters.cs
- DispatchChannelSink.cs
- EdmEntityTypeAttribute.cs
- ApplicationSecurityInfo.cs
- UriSection.cs
- SystemBrushes.cs
- CultureSpecificStringDictionary.cs
- MatchingStyle.cs
- RtfToXamlLexer.cs
- WindowClosedEventArgs.cs
- DrawToolTipEventArgs.cs
- DynamicILGenerator.cs
- StorageSetMapping.cs
- Binding.cs
- PerCallInstanceContextProvider.cs
- ZipIORawDataFileBlock.cs
- RegexCapture.cs
- TypePresenter.xaml.cs
- EncoderNLS.cs
- OrderPreservingMergeHelper.cs
- NoResizeHandleGlyph.cs
- TextEditorContextMenu.cs
- ObjectStorage.cs
- UndirectedGraph.cs
- Label.cs
- FontFamily.cs
- ChildChangedEventArgs.cs
- Label.cs
- StorageMappingItemCollection.cs
- DataError.cs
- ContentPlaceHolder.cs
- ToolStripItemRenderEventArgs.cs
- TypeValidationEventArgs.cs
- Command.cs
- _Events.cs
- WebEventCodes.cs
- TabRenderer.cs
- Timeline.cs
- RowSpanVector.cs
- TempFiles.cs
- EntityClassGenerator.cs
- FixedSOMLineCollection.cs
- PagerSettings.cs
- Model3DCollection.cs