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
- StringInfo.cs
- RelationshipSet.cs
- IpcChannelHelper.cs
- ComponentResourceManager.cs
- UnsafeNativeMethods.cs
- InputLangChangeEvent.cs
- ConnectionPointCookie.cs
- DesignerActionList.cs
- XappLauncher.cs
- ToolStripDropDownItem.cs
- Hex.cs
- KeyValueSerializer.cs
- FunctionDescription.cs
- BCryptSafeHandles.cs
- Translator.cs
- LogicalTreeHelper.cs
- PrimitiveOperationFormatter.cs
- DecoderBestFitFallback.cs
- TextRenderer.cs
- XmlUtil.cs
- LogManagementAsyncResult.cs
- ObjectParameter.cs
- LogStore.cs
- CssTextWriter.cs
- FormatterServices.cs
- ObjectQuery_EntitySqlExtensions.cs
- AsymmetricSignatureDeformatter.cs
- ConvertTextFrag.cs
- TransactionScopeDesigner.cs
- XpsFilter.cs
- GroupBox.cs
- ElementUtil.cs
- MDIControlStrip.cs
- PropertyIDSet.cs
- AutomationTextAttribute.cs
- InkCanvasFeedbackAdorner.cs
- MultiByteCodec.cs
- InkCanvasInnerCanvas.cs
- DataServiceContext.cs
- DataControlField.cs
- SelectionListComponentEditor.cs
- InternalRelationshipCollection.cs
- WebPartManagerInternals.cs
- SetMemberBinder.cs
- CommandCollectionEditor.cs
- VBIdentifierTrimConverter.cs
- SendActivity.cs
- Timer.cs
- HasCopySemanticsAttribute.cs
- DbMetaDataCollectionNames.cs
- arabicshape.cs
- KeyFrames.cs
- ActivationArguments.cs
- HtmlInputHidden.cs
- Transform.cs
- _AutoWebProxyScriptEngine.cs
- DbConnectionPoolIdentity.cs
- ConfigurationCollectionAttribute.cs
- WeakReference.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- SafeReversePInvokeHandle.cs
- MemberNameValidator.cs
- UIElement3D.cs
- IdentityNotMappedException.cs
- EncryptedKeyIdentifierClause.cs
- ReferencedAssemblyResolver.cs
- FlowSwitchDesigner.xaml.cs
- Ticks.cs
- ListViewHitTestInfo.cs
- BlobPersonalizationState.cs
- AxisAngleRotation3D.cs
- PathFigure.cs
- ClipboardData.cs
- SizeChangedEventArgs.cs
- HttpClientCertificate.cs
- Privilege.cs
- BridgeDataRecord.cs
- ValidationSummary.cs
- MetadataItemCollectionFactory.cs
- CellLabel.cs
- DesignerSerializationVisibilityAttribute.cs
- LineBreak.cs
- XPathDescendantIterator.cs
- EntityConnectionStringBuilder.cs
- Container.cs
- ListBoxItemAutomationPeer.cs
- Color.cs
- ToolStripContentPanel.cs
- BinaryReader.cs
- DataBoundControlHelper.cs
- EndpointDiscoveryMetadata11.cs
- QueryConverter.cs
- SqlCacheDependencySection.cs
- ContractBase.cs
- DBConnection.cs
- EntityException.cs
- RelationshipDetailsCollection.cs
- RecognizerInfo.cs
- UInt64Converter.cs
- ExtractedStateEntry.cs