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
- ConfigurationFileMap.cs
- sqlser.cs
- SendContent.cs
- ChtmlLinkAdapter.cs
- DesignerAttribute.cs
- SignalGate.cs
- StylusPoint.cs
- DataBoundControlAdapter.cs
- BooleanFunctions.cs
- EventListenerClientSide.cs
- RequestCacheManager.cs
- EntityWithKeyStrategy.cs
- UITypeEditors.cs
- ReturnType.cs
- HttpContext.cs
- ToolBarTray.cs
- GlobalAllocSafeHandle.cs
- InternalTypeHelper.cs
- FreezableOperations.cs
- DataGrid.cs
- TextServicesCompartment.cs
- InitializingNewItemEventArgs.cs
- HtmlDocument.cs
- HttpWebResponse.cs
- StackBuilderSink.cs
- DataGridViewColumn.cs
- MouseButton.cs
- ScrollPatternIdentifiers.cs
- Privilege.cs
- HandlerMappingMemo.cs
- ChineseLunisolarCalendar.cs
- METAHEADER.cs
- SchemaNotation.cs
- MethodBody.cs
- IgnoreFlushAndCloseStream.cs
- WebPartAddingEventArgs.cs
- XmlSchemaExporter.cs
- XmlWhitespace.cs
- MessagePropertyAttribute.cs
- TableCell.cs
- LookupBindingPropertiesAttribute.cs
- Border.cs
- TcpClientCredentialType.cs
- JsonByteArrayDataContract.cs
- FixedTextBuilder.cs
- X509ChainPolicy.cs
- SafeMILHandle.cs
- SocketPermission.cs
- SmtpTransport.cs
- COAUTHIDENTITY.cs
- EditorBrowsableAttribute.cs
- Byte.cs
- SerializerWriterEventHandlers.cs
- ConditionalWeakTable.cs
- FixedBufferAttribute.cs
- SqlGatherConsumedAliases.cs
- IISMapPath.cs
- GridViewHeaderRowPresenter.cs
- StreamInfo.cs
- ImageButton.cs
- ObjectQuery.cs
- PackageDigitalSignature.cs
- Object.cs
- _HTTPDateParse.cs
- AdCreatedEventArgs.cs
- TransportOutputChannel.cs
- RemotingAttributes.cs
- ParsedAttributeCollection.cs
- HttpCookiesSection.cs
- SqlProfileProvider.cs
- Encoder.cs
- TextEndOfLine.cs
- XmlSchemaAttribute.cs
- XmlNode.cs
- NavigationPropertyAccessor.cs
- CompositeActivityValidator.cs
- WebPartMenuStyle.cs
- FormViewPagerRow.cs
- SiteMap.cs
- SharedPerformanceCounter.cs
- ResolveMatches11.cs
- NamespaceDecl.cs
- XmlReflectionMember.cs
- ApplicationFileParser.cs
- DescriptionAttribute.cs
- EditorPartChrome.cs
- SqlConnectionString.cs
- ModuleConfigurationInfo.cs
- Viewport2DVisual3D.cs
- BamlLocalizableResourceKey.cs
- ResponseBodyWriter.cs
- Collection.cs
- ContextMenuStripActionList.cs
- GraphicsState.cs
- PropertyToken.cs
- RenderOptions.cs
- ActiveXContainer.cs
- ListItemParagraph.cs
- ShadowGlyph.cs
- Brush.cs