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
- DiagnosticSection.cs
- NestedContainer.cs
- DoubleStorage.cs
- XamlInt32CollectionSerializer.cs
- Screen.cs
- TypeElement.cs
- SqlCacheDependencyDatabase.cs
- WindowsStartMenu.cs
- InArgument.cs
- SerializationEventsCache.cs
- NameValuePair.cs
- XmlAnyElementAttribute.cs
- ResourceSet.cs
- TimerElapsedEvenArgs.cs
- PointHitTestResult.cs
- QueryResponse.cs
- TextBox.cs
- DataBinder.cs
- Pen.cs
- InputManager.cs
- PrinterUnitConvert.cs
- nulltextcontainer.cs
- BrushMappingModeValidation.cs
- LinqDataSourceContextEventArgs.cs
- BinaryCommonClasses.cs
- SiteMapDataSource.cs
- TransactionManager.cs
- XmlValidatingReaderImpl.cs
- TreeView.cs
- _NtlmClient.cs
- ThreadStartException.cs
- SQLString.cs
- ListenDesigner.cs
- InputMethodStateTypeInfo.cs
- TemplateControlParser.cs
- ExeContext.cs
- TextShapeableCharacters.cs
- KnownBoxes.cs
- UserControlAutomationPeer.cs
- BaseProcessor.cs
- ProcessHostMapPath.cs
- ToolStripSystemRenderer.cs
- InstanceHandleConflictException.cs
- DataGridViewButtonColumn.cs
- SystemMulticastIPAddressInformation.cs
- StartUpEventArgs.cs
- BitArray.cs
- BitmapEffectInput.cs
- Model3D.cs
- OpCodes.cs
- NumberFormatInfo.cs
- UnmanagedMarshal.cs
- BaseEntityWrapper.cs
- PseudoWebRequest.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- UIElementHelper.cs
- JumpTask.cs
- SQLRoleProvider.cs
- TemplatePropertyEntry.cs
- IxmlLineInfo.cs
- PropertyNames.cs
- XmlSchemaSimpleContent.cs
- OdbcTransaction.cs
- ExtentKey.cs
- LocationEnvironment.cs
- MenuItemStyle.cs
- SqlConnection.cs
- OracleConnectionFactory.cs
- WindowsFormsHost.cs
- FontSourceCollection.cs
- MILUtilities.cs
- ProtocolsSection.cs
- TextElementCollection.cs
- WindowsListViewItemStartMenu.cs
- PrintDocument.cs
- HttpContext.cs
- translator.cs
- DataTableMappingCollection.cs
- ImageBrush.cs
- XmlSchemaSubstitutionGroup.cs
- TypeLibConverter.cs
- WindowsListViewScroll.cs
- CompilerError.cs
- IOThreadTimer.cs
- MessageBox.cs
- Exceptions.cs
- IndexedString.cs
- LightweightCodeGenerator.cs
- HttpListenerException.cs
- TextEditorParagraphs.cs
- ApplicationActivator.cs
- Timeline.cs
- ExceptionHelpers.cs
- PermissionSetTriple.cs
- TriggerActionCollection.cs
- MtomMessageEncodingBindingElement.cs
- SspiNegotiationTokenProviderState.cs
- ListBindingHelper.cs
- MulticastOption.cs
- AutoCompleteStringCollection.cs