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
- ControlLocalizer.cs
- CompilerResults.cs
- DirtyTextRange.cs
- documentsequencetextpointer.cs
- WebPartDisplayModeCollection.cs
- SimpleNameService.cs
- RowToFieldTransformer.cs
- SHA1CryptoServiceProvider.cs
- ExpressionPrefixAttribute.cs
- SQLInt16.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ConditionalDesigner.cs
- NewArray.cs
- RegexGroup.cs
- templategroup.cs
- HtmlInputReset.cs
- FormViewPagerRow.cs
- LoadMessageLogger.cs
- ControlCollection.cs
- cookieexception.cs
- ReadOnlyKeyedCollection.cs
- LineBreak.cs
- HTTPNotFoundHandler.cs
- LogicalTreeHelper.cs
- TypeDescriptionProvider.cs
- LookupBindingPropertiesAttribute.cs
- EditableRegion.cs
- MarginsConverter.cs
- ArrayMergeHelper.cs
- RuntimeConfigLKG.cs
- ExeContext.cs
- OperationCanceledException.cs
- ListBase.cs
- FirstMatchCodeGroup.cs
- coordinatorscratchpad.cs
- SchemaLookupTable.cs
- SimpleBitVector32.cs
- X509Extension.cs
- DrawListViewColumnHeaderEventArgs.cs
- EntityDataSourceSelectedEventArgs.cs
- CompletedAsyncResult.cs
- DesignerDataTableBase.cs
- AccessDataSource.cs
- NativeWrapper.cs
- Roles.cs
- HashAlgorithm.cs
- DataBindingCollectionConverter.cs
- OutputCacheProfile.cs
- ProgressBar.cs
- DateTime.cs
- UndoEngine.cs
- NavigationWindow.cs
- X509Extension.cs
- ZeroOpNode.cs
- MaterializeFromAtom.cs
- BrowserCapabilitiesFactoryBase.cs
- AuthenticodeSignatureInformation.cs
- LineServicesCallbacks.cs
- Random.cs
- ArgumentsParser.cs
- PrimitiveSchema.cs
- MILUtilities.cs
- Stack.cs
- EditorZone.cs
- CultureInfoConverter.cs
- FieldTemplateUserControl.cs
- Color.cs
- DataServiceContext.cs
- TextSpanModifier.cs
- RadialGradientBrush.cs
- CompletionBookmark.cs
- SspiHelper.cs
- CollectionView.cs
- PrivilegeNotHeldException.cs
- TextRangeBase.cs
- MemberListBinding.cs
- Point.cs
- TreeViewHitTestInfo.cs
- IisTraceListener.cs
- __Error.cs
- BmpBitmapEncoder.cs
- ProcessThreadCollection.cs
- DataTableMapping.cs
- OSEnvironmentHelper.cs
- QueryOperatorEnumerator.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- documentsequencetextcontainer.cs
- MessageDirection.cs
- DataSourceComponent.cs
- LinqDataSourceInsertEventArgs.cs
- WebRequestModuleElement.cs
- EdmPropertyAttribute.cs
- AffineTransform3D.cs
- XpsResource.cs
- StringAnimationBase.cs
- COSERVERINFO.cs
- SpecialTypeDataContract.cs
- LoginCancelEventArgs.cs
- ApplicationInterop.cs
- FixedTextView.cs