Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- EntityDataSourceConfigureObjectContext.cs
- TrailingSpaceComparer.cs
- AggregateNode.cs
- EventPrivateKey.cs
- TextTreePropertyUndoUnit.cs
- Thumb.cs
- DataSourceView.cs
- SchemaAttDef.cs
- Size3DValueSerializer.cs
- IPGlobalProperties.cs
- WebPartTransformerCollection.cs
- DrawListViewSubItemEventArgs.cs
- ItemCheckEvent.cs
- ResourceProviderFactory.cs
- TimeSpanOrInfiniteConverter.cs
- DataGridViewCellCancelEventArgs.cs
- Processor.cs
- HtmlTableRow.cs
- ChunkedMemoryStream.cs
- DecimalStorage.cs
- XComponentModel.cs
- CultureMapper.cs
- MdImport.cs
- CodeAttributeDeclaration.cs
- WebPartTracker.cs
- DataServiceHost.cs
- SecurityElement.cs
- ListBindingConverter.cs
- StoragePropertyMapping.cs
- FaultHandlingFilter.cs
- Queue.cs
- PropertyChangeTracker.cs
- XmlValueConverter.cs
- WindowsFormsHost.cs
- XmlDictionary.cs
- HTTPAPI_VERSION.cs
- TreeChangeInfo.cs
- DataGridViewCellStyleConverter.cs
- DataGridItemEventArgs.cs
- WorkflowInstance.cs
- WindowsListBox.cs
- ElementFactory.cs
- NamespaceEmitter.cs
- CacheSection.cs
- Hash.cs
- ToolStripPanel.cs
- _AcceptOverlappedAsyncResult.cs
- PowerModeChangedEventArgs.cs
- UnmanagedMemoryStreamWrapper.cs
- ProjectionRewriter.cs
- ConnectAlgorithms.cs
- PeerNameResolver.cs
- FamilyTypefaceCollection.cs
- UnwrappedTypesXmlSerializerManager.cs
- BufferedMessageData.cs
- AmbientLight.cs
- ResolveMatchesApril2005.cs
- ValueQuery.cs
- InputManager.cs
- Size3DConverter.cs
- MaskedTextBox.cs
- QilTernary.cs
- XmlArrayItemAttribute.cs
- FileDialog.cs
- SafeReversePInvokeHandle.cs
- RangeValidator.cs
- PartialCachingControl.cs
- XmlCustomFormatter.cs
- ModulesEntry.cs
- SystemWebCachingSectionGroup.cs
- AdjustableArrowCap.cs
- GridItem.cs
- WS2007HttpBinding.cs
- MembershipPasswordException.cs
- ImageFormat.cs
- ToolboxItemSnapLineBehavior.cs
- URLIdentityPermission.cs
- TransactionContextValidator.cs
- MasterPageBuildProvider.cs
- MultiView.cs
- FormatterServices.cs
- GeneralTransformGroup.cs
- WebPartDeleteVerb.cs
- RenderDataDrawingContext.cs
- InstancePersistence.cs
- BCLDebug.cs
- ellipse.cs
- XmlSchemaInferenceException.cs
- TabControl.cs
- ValuePatternIdentifiers.cs
- OrderedDictionaryStateHelper.cs
- ELinqQueryState.cs
- NodeLabelEditEvent.cs
- UIElementPropertyUndoUnit.cs
- ListDesigner.cs
- Int32Rect.cs
- FrameworkObject.cs
- XmlCharCheckingReader.cs
- ObjectListShowCommandsEventArgs.cs
- ToolboxItem.cs