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
- InputEventArgs.cs
- MenuTracker.cs
- ProfileSection.cs
- TextElementCollectionHelper.cs
- RtfControls.cs
- SemaphoreFullException.cs
- MarkupCompilePass2.cs
- DisplayMemberTemplateSelector.cs
- PropertyStore.cs
- FixedSOMElement.cs
- XhtmlStyleClass.cs
- StylusDownEventArgs.cs
- ArrayWithOffset.cs
- EtwProvider.cs
- DateTimeUtil.cs
- TextEffect.cs
- ScriptReferenceEventArgs.cs
- DoubleLinkListEnumerator.cs
- HostUtils.cs
- GeneralTransform3DTo2DTo3D.cs
- ProvidersHelper.cs
- WpfPayload.cs
- HtmlTableCell.cs
- DESCryptoServiceProvider.cs
- ContainerControl.cs
- XmlSchemaSimpleTypeUnion.cs
- GreenMethods.cs
- Automation.cs
- MetroSerializationManager.cs
- InstanceHandleReference.cs
- DocumentSequenceHighlightLayer.cs
- UnmanagedMarshal.cs
- DllHostedComPlusServiceHost.cs
- DataBoundLiteralControl.cs
- InternalMappingException.cs
- Int32Storage.cs
- StrokeNode.cs
- RIPEMD160.cs
- Label.cs
- TimeSpanMinutesConverter.cs
- InternalResources.cs
- AppDomainUnloadedException.cs
- TrustManagerMoreInformation.cs
- CompareValidator.cs
- RedirectionProxy.cs
- _UriSyntax.cs
- CapabilitiesRule.cs
- RunWorkerCompletedEventArgs.cs
- WsdlParser.cs
- PolicyManager.cs
- OracleSqlParser.cs
- ExtentKey.cs
- PrimitiveXmlSerializers.cs
- StringAttributeCollection.cs
- InvalidWorkflowException.cs
- ZipIOModeEnforcingStream.cs
- PropertyBuilder.cs
- DependencyObjectCodeDomSerializer.cs
- DataGridCellEditEndingEventArgs.cs
- CompilerResults.cs
- OracleCommandSet.cs
- HandlerBase.cs
- SqlDataSourceConfigureSelectPanel.cs
- RotationValidation.cs
- Activity.cs
- TreeNodeCollectionEditor.cs
- StringUtil.cs
- ContentDisposition.cs
- TransformValueSerializer.cs
- DesignerProperties.cs
- EntityWithKeyStrategy.cs
- CodeTypeParameter.cs
- RSAOAEPKeyExchangeFormatter.cs
- SerializationSectionGroup.cs
- WindowsHyperlink.cs
- VideoDrawing.cs
- InvalidCastException.cs
- SqlFacetAttribute.cs
- ObjectPropertyMapping.cs
- RegexWorker.cs
- Page.cs
- XsdDateTime.cs
- TableLayoutPanel.cs
- BitStream.cs
- RewritingSimplifier.cs
- Sql8ExpressionRewriter.cs
- SqlClientWrapperSmiStream.cs
- TrackBar.cs
- NavigatorOutput.cs
- DependencyPropertyDescriptor.cs
- NeutralResourcesLanguageAttribute.cs
- MethodImplAttribute.cs
- ResourcePool.cs
- XhtmlBasicImageAdapter.cs
- AuthenticateEventArgs.cs
- RawContentTypeMapper.cs
- SqlConnectionPoolProviderInfo.cs
- SocketPermission.cs
- WebBrowserDocumentCompletedEventHandler.cs
- DataSpaceManager.cs