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
- XMLSchema.cs
- Registry.cs
- ItemPager.cs
- XmlSchema.cs
- MatrixUtil.cs
- SizeKeyFrameCollection.cs
- InternalPermissions.cs
- MessageSecurityVersionConverter.cs
- PenLineCapValidation.cs
- MILUtilities.cs
- LayoutDump.cs
- DescendentsWalker.cs
- CacheAxisQuery.cs
- HtmlWindowCollection.cs
- TargetConverter.cs
- Rule.cs
- TraceSection.cs
- ClientRoleProvider.cs
- VisualBrush.cs
- BindingBase.cs
- WebControlsSection.cs
- CompiledAction.cs
- EpmCustomContentWriterNodeData.cs
- VoiceInfo.cs
- MatrixTransform3D.cs
- QueryComponents.cs
- URL.cs
- FusionWrap.cs
- MasterPage.cs
- DataGridHyperlinkColumn.cs
- ContainerTracking.cs
- ConstraintConverter.cs
- Debug.cs
- UnhandledExceptionEventArgs.cs
- HiddenFieldPageStatePersister.cs
- SystemWebExtensionsSectionGroup.cs
- ConnectionProviderAttribute.cs
- _AutoWebProxyScriptEngine.cs
- ClientTargetSection.cs
- EntityParameterCollection.cs
- WebPartMenuStyle.cs
- TextBoxBase.cs
- SubpageParagraph.cs
- KeyTime.cs
- ProtocolProfile.cs
- CannotUnloadAppDomainException.cs
- SurrogateEncoder.cs
- DoubleLinkListEnumerator.cs
- CoordinationService.cs
- DbConnectionOptions.cs
- ResXBuildProvider.cs
- HttpTransportSecurity.cs
- ConnectionInterfaceCollection.cs
- Encoding.cs
- XmlEncodedRawTextWriter.cs
- SqlTypeSystemProvider.cs
- Trace.cs
- BitmapMetadata.cs
- SplineKeyFrames.cs
- PropertyEmitterBase.cs
- CharacterString.cs
- KeyEventArgs.cs
- ChannelProtectionRequirements.cs
- BinHexDecoder.cs
- XmlAnyElementAttribute.cs
- InputReferenceExpression.cs
- ModifyActivitiesPropertyDescriptor.cs
- ReturnType.cs
- CompiledXpathExpr.cs
- WebServiceFaultDesigner.cs
- FormsAuthenticationUser.cs
- SocketElement.cs
- SystemWebSectionGroup.cs
- SqlInternalConnectionSmi.cs
- InputMethodStateChangeEventArgs.cs
- MiniCustomAttributeInfo.cs
- DesignTimeTemplateParser.cs
- HyperLinkColumn.cs
- ObjectDataSourceDisposingEventArgs.cs
- ImageIndexConverter.cs
- SqlDataSourceFilteringEventArgs.cs
- GridViewDeletedEventArgs.cs
- ObjectAnimationUsingKeyFrames.cs
- xmlsaver.cs
- ThicknessAnimation.cs
- AttachedPropertyBrowsableAttribute.cs
- NavigationWindow.cs
- XsdDuration.cs
- TagMapInfo.cs
- MetadataSerializer.cs
- StackBuilderSink.cs
- XhtmlBasicTextViewAdapter.cs
- ValidatorCollection.cs
- DependencyPropertyValueSerializer.cs
- RegexMatchCollection.cs
- StatusBarItemAutomationPeer.cs
- TraceLevelStore.cs
- Assert.cs
- Viewport3DAutomationPeer.cs
- PathSegment.cs