Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- RC2.cs
- HttpInputStream.cs
- UnsafeNativeMethods.cs
- DataObjectAttribute.cs
- CTreeGenerator.cs
- WebPartTransformerAttribute.cs
- XPathDocumentIterator.cs
- RSACryptoServiceProvider.cs
- Site.cs
- ServiceBusyException.cs
- DifferencingCollection.cs
- PagerStyle.cs
- WorkflowMarkupElementEventArgs.cs
- VisualStyleTypesAndProperties.cs
- TimeSpanFormat.cs
- ListControlConvertEventArgs.cs
- SignedPkcs7.cs
- DataBoundControlAdapter.cs
- IFlowDocumentViewer.cs
- MessageRpc.cs
- XmlEnumAttribute.cs
- AlphabeticalEnumConverter.cs
- ClientTarget.cs
- XPathSelfQuery.cs
- TypeRefElement.cs
- WmpBitmapDecoder.cs
- EntityDataSourceUtil.cs
- HtmlShim.cs
- PTConverter.cs
- VisemeEventArgs.cs
- EntityContainer.cs
- DataColumnMapping.cs
- BrowserCapabilitiesFactoryBase.cs
- EdmComplexPropertyAttribute.cs
- DiagnosticsConfiguration.cs
- MetabaseReader.cs
- SectionInput.cs
- _TimerThread.cs
- Baml6ConstructorInfo.cs
- ReflectionHelper.cs
- DocumentCollection.cs
- SystemInformation.cs
- LineSegment.cs
- TextBoxRenderer.cs
- DataIdProcessor.cs
- Misc.cs
- ColumnWidthChangedEvent.cs
- ToolStripContainerActionList.cs
- ExceptionUtil.cs
- MouseButton.cs
- GeometryValueSerializer.cs
- UIElementIsland.cs
- TextRangeSerialization.cs
- SQLMoneyStorage.cs
- AccessDataSourceView.cs
- Translator.cs
- MsmqIntegrationSecurityElement.cs
- CharConverter.cs
- FrameworkTextComposition.cs
- HttpProcessUtility.cs
- CompositeTypefaceMetrics.cs
- SafeTokenHandle.cs
- ErrorWrapper.cs
- GlobalAllocSafeHandle.cs
- ListItemCollection.cs
- TrustManager.cs
- DependentList.cs
- FileDialog.cs
- PointCollection.cs
- AdministrationHelpers.cs
- ListView.cs
- Stack.cs
- LinkTarget.cs
- ServiceCredentialsElement.cs
- HtmlFormWrapper.cs
- XmlWriterSettings.cs
- SafeTimerHandle.cs
- SimpleFileLog.cs
- XamlPathDataSerializer.cs
- NameTable.cs
- UInt16Storage.cs
- BufferedWebEventProvider.cs
- ListViewGroupItemCollection.cs
- HttpHandlersSection.cs
- StructuredType.cs
- MailWebEventProvider.cs
- OletxTransactionFormatter.cs
- VolatileResourceManager.cs
- CollectionViewSource.cs
- Keywords.cs
- AcceleratedTokenAuthenticator.cs
- TextStore.cs
- DataControlCommands.cs
- MemberRestriction.cs
- CellQuery.cs
- ImageCodecInfo.cs
- LiteralControl.cs
- SoapTypeAttribute.cs
- BaseCAMarshaler.cs
- StorageScalarPropertyMapping.cs