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
- WindowsGraphicsCacheManager.cs
- HtmlImageAdapter.cs
- HitTestWithGeometryDrawingContextWalker.cs
- TypeReference.cs
- VirtualDirectoryMapping.cs
- Token.cs
- ThreadStateException.cs
- DynamicDocumentPaginator.cs
- HtmlInputText.cs
- GraphicsPathIterator.cs
- SystemWebSectionGroup.cs
- IERequestCache.cs
- ClientRuntimeConfig.cs
- ContainerParagraph.cs
- EnumConverter.cs
- EntitySetBase.cs
- TraceListeners.cs
- Matrix3D.cs
- ConcurrentQueue.cs
- GeneralTransform2DTo3D.cs
- CustomPopupPlacement.cs
- UshortList2.cs
- NativeMethods.cs
- PolyQuadraticBezierSegmentFigureLogic.cs
- DataContractSerializer.cs
- DBCommandBuilder.cs
- EpmAttributeNameBuilder.cs
- EmptyStringExpandableObjectConverter.cs
- LinearGradientBrush.cs
- CodeDomComponentSerializationService.cs
- CrossSiteScriptingValidation.cs
- PipeSecurity.cs
- ControlHelper.cs
- VisualBasicSettingsHandler.cs
- HostVisual.cs
- OleDbWrapper.cs
- DecoderFallback.cs
- ParameterDataSourceExpression.cs
- ObjectView.cs
- PageParserFilter.cs
- xml.cs
- login.cs
- AsymmetricSecurityBindingElement.cs
- SubMenuStyleCollection.cs
- XamlToRtfParser.cs
- PrivateFontCollection.cs
- ScrollChrome.cs
- DependencyPropertyKey.cs
- Message.cs
- LinkLabel.cs
- WindowsFormsSynchronizationContext.cs
- DoWhile.cs
- StaticResourceExtension.cs
- TextSimpleMarkerProperties.cs
- PlainXmlSerializer.cs
- GcHandle.cs
- DependencyPropertyKind.cs
- Configuration.cs
- ExpressionReplacer.cs
- TableColumn.cs
- TypeDescriptionProvider.cs
- MetafileHeader.cs
- DbConnectionInternal.cs
- RichTextBox.cs
- PhysicalAddress.cs
- ContravarianceAdapter.cs
- InternalMappingException.cs
- IdnElement.cs
- FileReservationCollection.cs
- Missing.cs
- QueryExecutionOption.cs
- BooleanFacetDescriptionElement.cs
- WSSecurityOneDotOneSendSecurityHeader.cs
- SchemaNamespaceManager.cs
- MasterPageCodeDomTreeGenerator.cs
- PrefixQName.cs
- EntitySetDataBindingList.cs
- RegularExpressionValidator.cs
- XmlQueryTypeFactory.cs
- ByteStack.cs
- BitmapDownload.cs
- SEHException.cs
- NavigationHelper.cs
- ApplicationInfo.cs
- TextTabProperties.cs
- SerializationEventsCache.cs
- SortedDictionary.cs
- RefExpr.cs
- ComplexPropertyEntry.cs
- TextRenderer.cs
- RSAOAEPKeyExchangeDeformatter.cs
- AnnotationComponentChooser.cs
- PropertyCollection.cs
- SqlTypesSchemaImporter.cs
- Code.cs
- LogicalTreeHelper.cs
- Tile.cs
- EntityDataSourceMemberPath.cs
- ReadWriteControlDesigner.cs
- _ConnectStream.cs