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
- LinkUtilities.cs
- SafeRightsManagementHandle.cs
- XsltException.cs
- DataGridBoundColumn.cs
- relpropertyhelper.cs
- QilSortKey.cs
- SqlBuilder.cs
- XmlNavigatorFilter.cs
- DataGridViewTextBoxEditingControl.cs
- CounterSampleCalculator.cs
- PipelineModuleStepContainer.cs
- ScopelessEnumAttribute.cs
- filewebrequest.cs
- WebPartDisplayModeCollection.cs
- OleDbError.cs
- SmtpNegotiateAuthenticationModule.cs
- XamlTypeMapper.cs
- DataSourceCacheDurationConverter.cs
- TypeDependencyAttribute.cs
- DispatchChannelSink.cs
- ImmutableCommunicationTimeouts.cs
- RemotingSurrogateSelector.cs
- Switch.cs
- Vector3D.cs
- SynchronizationHandlesCodeDomSerializer.cs
- ToolboxComponentsCreatingEventArgs.cs
- SymbolEqualComparer.cs
- Logging.cs
- ValidationErrorEventArgs.cs
- MultipleViewProviderWrapper.cs
- AppSettingsExpressionBuilder.cs
- DatagridviewDisplayedBandsData.cs
- ReferenceEqualityComparer.cs
- GridViewEditEventArgs.cs
- MarkupCompilePass1.cs
- AlphaSortedEnumConverter.cs
- QilXmlReader.cs
- CommandArguments.cs
- DesignerLoader.cs
- NamedPipeDuplicateContext.cs
- ClientRoleProvider.cs
- ProcessManager.cs
- Matrix.cs
- TextEditorDragDrop.cs
- XmlDataSourceNodeDescriptor.cs
- OdbcConnectionOpen.cs
- SQLBoolean.cs
- RemoteCryptoSignHashRequest.cs
- XmlEntityReference.cs
- TextViewSelectionProcessor.cs
- SerialReceived.cs
- PeerChannelListener.cs
- TextViewElement.cs
- SQLBytes.cs
- listitem.cs
- OleDbReferenceCollection.cs
- VirtualPath.cs
- StringFreezingAttribute.cs
- SiblingIterators.cs
- TimeSpanValidatorAttribute.cs
- SetIterators.cs
- QilBinary.cs
- GregorianCalendar.cs
- BufferAllocator.cs
- LayoutSettings.cs
- BinaryParser.cs
- OperationAbortedException.cs
- SecUtil.cs
- filewebresponse.cs
- UrlPath.cs
- ReversePositionQuery.cs
- WeakEventManager.cs
- BaseDataList.cs
- StateValidator.cs
- xmlfixedPageInfo.cs
- PowerStatus.cs
- NumericPagerField.cs
- ResourceExpression.cs
- LineGeometry.cs
- ProvidersHelper.cs
- CheckBoxFlatAdapter.cs
- ViewStateException.cs
- CompilerHelpers.cs
- FrugalMap.cs
- PlatformCulture.cs
- ManagementDateTime.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- ProfileServiceManager.cs
- PickBranchDesigner.xaml.cs
- CmsUtils.cs
- FrameworkTextComposition.cs
- BufferAllocator.cs
- ContentPropertyAttribute.cs
- ContainerTracking.cs
- RsaSecurityTokenParameters.cs
- SafeNativeMethodsOther.cs
- VariableAction.cs
- RuntimeArgumentHandle.cs
- OrderedDictionary.cs
- PasswordDeriveBytes.cs