Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SoapReflectionImporter.cs
- BuildResultCache.cs
- TagPrefixInfo.cs
- BuiltInExpr.cs
- VersionedStream.cs
- ConnectionsZoneDesigner.cs
- _Win32.cs
- BitmapEffectDrawing.cs
- PointUtil.cs
- DeviceContexts.cs
- Util.cs
- DataGridViewColumnTypeEditor.cs
- AssemblyBuilder.cs
- MemoryFailPoint.cs
- PermissionSetEnumerator.cs
- ExternalDataExchangeService.cs
- ParameterDataSourceExpression.cs
- ListViewItemSelectionChangedEvent.cs
- LinearQuaternionKeyFrame.cs
- DateTimeUtil.cs
- FormViewDeletedEventArgs.cs
- TableCell.cs
- ColumnHeader.cs
- MouseWheelEventArgs.cs
- ConnectionInterfaceCollection.cs
- DataGridRelationshipRow.cs
- TextProperties.cs
- ShadowGlyph.cs
- MailMessage.cs
- RadioButton.cs
- MemoryPressure.cs
- ObjectDataSourceDisposingEventArgs.cs
- FieldTemplateFactory.cs
- SafeBitVector32.cs
- BaseValidator.cs
- FilteredAttributeCollection.cs
- Accessible.cs
- TTSEngineProxy.cs
- FamilyTypefaceCollection.cs
- ObsoleteAttribute.cs
- GlyphRun.cs
- BrowserTree.cs
- TransactionInterop.cs
- XPathNavigatorException.cs
- CornerRadiusConverter.cs
- SelectorItemAutomationPeer.cs
- WinEventQueueItem.cs
- SoapAttributeOverrides.cs
- StaticContext.cs
- filewebresponse.cs
- StringWriter.cs
- SizeConverter.cs
- EntityDataSourceViewSchema.cs
- PersistNameAttribute.cs
- DesignSurfaceEvent.cs
- DesignerAutoFormatCollection.cs
- IIS7UserPrincipal.cs
- cache.cs
- _ListenerAsyncResult.cs
- TextBounds.cs
- RuleCache.cs
- DecoderBestFitFallback.cs
- Emitter.cs
- DataRow.cs
- ProcessHostServerConfig.cs
- CurrentChangingEventArgs.cs
- EntityModelSchemaGenerator.cs
- DataGridViewRowStateChangedEventArgs.cs
- XmlSchemaGroup.cs
- CqlIdentifiers.cs
- TraceData.cs
- HostExecutionContextManager.cs
- SecurityDescriptor.cs
- DataFieldEditor.cs
- ControlAdapter.cs
- connectionpool.cs
- CustomSignedXml.cs
- RuleProcessor.cs
- XmlNamespaceMappingCollection.cs
- TabControlAutomationPeer.cs
- MessageFormatterConverter.cs
- InternalBufferOverflowException.cs
- OracleBinary.cs
- OleServicesContext.cs
- XslAstAnalyzer.cs
- SecurityTokenResolver.cs
- DES.cs
- ServiceModelDictionary.cs
- InputLanguageCollection.cs
- SystemIPGlobalStatistics.cs
- CalendarDesigner.cs
- TextSelectionHelper.cs
- DesignerWithHeader.cs
- DSASignatureDeformatter.cs
- DataGridBoolColumn.cs
- ResourceCodeDomSerializer.cs
- ServiceParser.cs
- UidPropertyAttribute.cs
- CodeDomSerializerBase.cs
- CellPartitioner.cs