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
- BackStopAuthenticationModule.cs
- CategoryAttribute.cs
- Base64Encoder.cs
- InputLanguageCollection.cs
- CaseCqlBlock.cs
- WinCategoryAttribute.cs
- QilDataSource.cs
- X509RawDataKeyIdentifierClause.cs
- BooleanExpr.cs
- RemotingConfiguration.cs
- GradientStop.cs
- FlowDocumentScrollViewer.cs
- StyleSheetComponentEditor.cs
- ProcessHostServerConfig.cs
- RoutedCommand.cs
- ToolStripItemRenderEventArgs.cs
- Rights.cs
- WebPermission.cs
- SQLBytes.cs
- DataBoundControlHelper.cs
- GeneratedContractType.cs
- RequiredFieldValidator.cs
- OleDbConnectionFactory.cs
- DataServiceProcessingPipelineEventArgs.cs
- ViewCellRelation.cs
- PointKeyFrameCollection.cs
- ChangePassword.cs
- SchemaManager.cs
- InheritanceRules.cs
- DelegateTypeInfo.cs
- PeerApplication.cs
- NavigatorOutput.cs
- SmiMetaData.cs
- XmlExpressionDumper.cs
- EmissiveMaterial.cs
- DataException.cs
- InputDevice.cs
- CodeEventReferenceExpression.cs
- ContextMenuAutomationPeer.cs
- ViewLoader.cs
- TableItemStyle.cs
- ValueUtilsSmi.cs
- RelatedPropertyManager.cs
- PolyLineSegment.cs
- CompleteWizardStep.cs
- ObjectCacheSettings.cs
- DataGridViewTopLeftHeaderCell.cs
- ExpressionBuilderContext.cs
- DES.cs
- DefaultAssemblyResolver.cs
- DataConnectionHelper.cs
- InstanceKeyCompleteException.cs
- DetailsViewInsertEventArgs.cs
- ClosureBinding.cs
- OletxTransactionManager.cs
- CroppedBitmap.cs
- ProtocolsSection.cs
- FactoryGenerator.cs
- DataTableMappingCollection.cs
- GroupItem.cs
- QilLoop.cs
- InvokeMemberBinder.cs
- DBAsyncResult.cs
- PhonemeConverter.cs
- DoubleIndependentAnimationStorage.cs
- FixedSOMTableRow.cs
- PointConverter.cs
- Parameter.cs
- TimeSpanStorage.cs
- XmlFormatMapping.cs
- HwndAppCommandInputProvider.cs
- Environment.cs
- XmlSchemaProviderAttribute.cs
- LoadWorkflowByKeyAsyncResult.cs
- WebControl.cs
- SplitContainer.cs
- WebBrowserNavigatedEventHandler.cs
- ScaleTransform3D.cs
- ListItemsPage.cs
- FieldNameLookup.cs
- LayoutEngine.cs
- ValidationErrorCollection.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- SignHashRequest.cs
- PolicyManager.cs
- ColumnPropertiesGroup.cs
- VectorValueSerializer.cs
- RoleManagerModule.cs
- PageRouteHandler.cs
- PageClientProxyGenerator.cs
- FormViewPageEventArgs.cs
- MeasureData.cs
- CompilerGlobalScopeAttribute.cs
- Restrictions.cs
- IntSecurity.cs
- UserControlBuildProvider.cs
- SystemInfo.cs
- SafeHGlobalHandleCritical.cs
- PropertyTab.cs
- LinkUtilities.cs