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
- ValueSerializerAttribute.cs
- IERequestCache.cs
- InheritanceAttribute.cs
- XAMLParseException.cs
- LicFileLicenseProvider.cs
- Tracer.cs
- SqlCrossApplyToCrossJoin.cs
- HttpServerVarsCollection.cs
- InstanceCompleteException.cs
- DataBoundControlAdapter.cs
- AnnotationMap.cs
- InkCanvasSelection.cs
- UpdateManifestForBrowserApplication.cs
- XsltException.cs
- Sorting.cs
- TransactionScopeDesigner.cs
- Merger.cs
- X509Certificate2Collection.cs
- login.cs
- VisualStyleInformation.cs
- NetworkInformationPermission.cs
- NetworkInterface.cs
- SQLInt64Storage.cs
- OdbcErrorCollection.cs
- ColorMatrix.cs
- AuthenticationService.cs
- DrawingGroup.cs
- SQLMoneyStorage.cs
- Matrix3DConverter.cs
- DoubleAnimationClockResource.cs
- CommandCollectionEditor.cs
- ConnectionStringEditor.cs
- EditingMode.cs
- TrustManager.cs
- ContainerControl.cs
- GroupLabel.cs
- SecurityPermission.cs
- ProviderException.cs
- XmlSchemaSimpleTypeUnion.cs
- ToolBarButton.cs
- ConfigurationManagerHelper.cs
- NativeMethods.cs
- XPathEmptyIterator.cs
- StreamWriter.cs
- SymbolEqualComparer.cs
- AudioDeviceOut.cs
- relpropertyhelper.cs
- JsonServiceDocumentSerializer.cs
- StatusBarItem.cs
- SequenceQuery.cs
- FileLoadException.cs
- GroupDescription.cs
- HierarchicalDataBoundControl.cs
- SuppressIldasmAttribute.cs
- BigInt.cs
- AlternationConverter.cs
- PartialArray.cs
- DecimalConstantAttribute.cs
- TreeNodeSelectionProcessor.cs
- XmlSerializer.cs
- WebPartDescriptionCollection.cs
- DataGridViewTextBoxColumn.cs
- CacheDependency.cs
- HostUtils.cs
- IssuanceLicense.cs
- OutOfMemoryException.cs
- HttpResponse.cs
- HttpException.cs
- StructuralCache.cs
- QuaternionRotation3D.cs
- VisualStateGroup.cs
- ConsoleCancelEventArgs.cs
- MembershipPasswordException.cs
- SqlBulkCopyColumnMappingCollection.cs
- LogReserveAndAppendState.cs
- And.cs
- TextParagraph.cs
- StandardRuntimeEnumValidatorAttribute.cs
- EntityContainerEmitter.cs
- SQLInt64Storage.cs
- SetMemberBinder.cs
- BitmapCodecInfo.cs
- DesignerActionPanel.cs
- WebPartConnection.cs
- ControlPaint.cs
- MetafileHeader.cs
- categoryentry.cs
- MouseEventArgs.cs
- InvalidDataContractException.cs
- VerificationAttribute.cs
- precedingsibling.cs
- BuildProviderAppliesToAttribute.cs
- _TransmitFileOverlappedAsyncResult.cs
- RawUIStateInputReport.cs
- XmlTextWriter.cs
- CompileLiteralTextParser.cs
- MissingSatelliteAssemblyException.cs
- ChangeBlockUndoRecord.cs
- SqlTriggerContext.cs
- AddInAdapter.cs