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
- UshortList2.cs
- LogEntryHeaderv1Deserializer.cs
- MimeWriter.cs
- SafeWaitHandle.cs
- FlowDocumentPage.cs
- XamlParser.cs
- _UriSyntax.cs
- DateTimeUtil.cs
- Error.cs
- CustomExpression.cs
- FlowPosition.cs
- Registry.cs
- EventToken.cs
- LabelLiteral.cs
- WebConfigurationManager.cs
- SingleKeyFrameCollection.cs
- WorkflowItemsPresenter.cs
- Action.cs
- IntranetCredentialPolicy.cs
- HighContrastHelper.cs
- RuntimeHelpers.cs
- WebServiceData.cs
- Menu.cs
- PagesChangedEventArgs.cs
- DynamicPropertyReader.cs
- FileCodeGroup.cs
- DataPagerCommandEventArgs.cs
- XmlKeywords.cs
- BamlLocalizabilityResolver.cs
- DataSourceControlBuilder.cs
- ZoneIdentityPermission.cs
- EdmFunction.cs
- NextPreviousPagerField.cs
- WebPartCatalogAddVerb.cs
- DropSource.cs
- TakeOrSkipWhileQueryOperator.cs
- AttributeProviderAttribute.cs
- AsymmetricSignatureFormatter.cs
- BindableAttribute.cs
- QueryModel.cs
- SqlConnectionStringBuilder.cs
- Directory.cs
- AccessControlList.cs
- WebPartZoneCollection.cs
- Int32AnimationUsingKeyFrames.cs
- DesignerCategoryAttribute.cs
- SqlServer2KCompatibilityAnnotation.cs
- AdditionalEntityFunctions.cs
- FontFamilyConverter.cs
- SimpleRecyclingCache.cs
- WindowsListViewScroll.cs
- TextTrailingWordEllipsis.cs
- WindowsSpinner.cs
- UpdatePanelTrigger.cs
- EntityDataSource.cs
- NetNamedPipeBinding.cs
- RecipientInfo.cs
- Win32Exception.cs
- Converter.cs
- MD5CryptoServiceProvider.cs
- DockEditor.cs
- BinaryCommonClasses.cs
- webclient.cs
- DeferredReference.cs
- EventMetadata.cs
- TypeContext.cs
- RequiredFieldValidator.cs
- EventProviderWriter.cs
- TransactedBatchContext.cs
- PixelFormats.cs
- DataRelation.cs
- SqlFunctions.cs
- ItemsPanelTemplate.cs
- Configuration.cs
- RelationshipNavigation.cs
- CmsInterop.cs
- FileSystemInfo.cs
- SqlStream.cs
- ProcessHostFactoryHelper.cs
- SerialStream.cs
- XsdCachingReader.cs
- EventLogTraceListener.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- ManualResetEvent.cs
- EmissiveMaterial.cs
- PostBackOptions.cs
- XPSSignatureDefinition.cs
- ReferencedCollectionType.cs
- BindStream.cs
- Blend.cs
- TrackingServices.cs
- UrlMapping.cs
- SequentialWorkflowHeaderFooter.cs
- LogPolicy.cs
- Currency.cs
- HttpApplication.cs
- _HeaderInfoTable.cs
- TraversalRequest.cs
- AdornedElementPlaceholder.cs
- BuildProviderAppliesToAttribute.cs