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
- safelinkcollection.cs
- HiddenFieldPageStatePersister.cs
- MetadataPropertyCollection.cs
- Logging.cs
- IpcServerChannel.cs
- DbConnectionPoolOptions.cs
- Bits.cs
- DynamicValidatorEventArgs.cs
- NameValuePair.cs
- EventLogTraceListener.cs
- CachedCompositeFamily.cs
- ResourceExpressionBuilder.cs
- MainMenu.cs
- XPathAncestorIterator.cs
- OleDbParameter.cs
- LeftCellWrapper.cs
- ObjectManager.cs
- MultipleViewPattern.cs
- InvalidPipelineStoreException.cs
- OdbcError.cs
- BindingNavigatorDesigner.cs
- BindStream.cs
- ByteViewer.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- Label.cs
- TreeNodeBindingDepthConverter.cs
- WebHttpBehavior.cs
- MulticastNotSupportedException.cs
- DrawingBrush.cs
- SimpleModelProvider.cs
- _Rfc2616CacheValidators.cs
- DataSetUtil.cs
- NotFiniteNumberException.cs
- TextTreeInsertElementUndoUnit.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- DataGridDetailsPresenter.cs
- URI.cs
- PrePostDescendentsWalker.cs
- ToolStripItemImageRenderEventArgs.cs
- DecoderExceptionFallback.cs
- ContextMenuAutomationPeer.cs
- ValidationErrorEventArgs.cs
- VisualStyleTypesAndProperties.cs
- oledbconnectionstring.cs
- EventLogPermissionAttribute.cs
- EntityWithChangeTrackerStrategy.cs
- CustomAttributeFormatException.cs
- xml.cs
- LinearKeyFrames.cs
- ContainerUIElement3D.cs
- CLSCompliantAttribute.cs
- CheckBoxFlatAdapter.cs
- DefaultTraceListener.cs
- TransformGroup.cs
- BinaryObjectReader.cs
- SendReply.cs
- HierarchicalDataSourceControl.cs
- JpegBitmapDecoder.cs
- BufferedGraphicsContext.cs
- DataServiceQueryProvider.cs
- AppDomainManager.cs
- DependencyPropertyKind.cs
- InputScopeManager.cs
- BitmapData.cs
- Symbol.cs
- MsmqBindingMonitor.cs
- PrintingPermissionAttribute.cs
- CodeTypeReferenceCollection.cs
- Attributes.cs
- XNameConverter.cs
- ToolStripContentPanel.cs
- AttributeUsageAttribute.cs
- EditCommandColumn.cs
- XamlInt32CollectionSerializer.cs
- BuildResultCache.cs
- DataGridViewElement.cs
- RayHitTestParameters.cs
- SecurityUtils.cs
- Listen.cs
- TypeSystemProvider.cs
- MessageSecurityProtocol.cs
- Attributes.cs
- HtmlEmptyTagControlBuilder.cs
- FlagsAttribute.cs
- ContextMarshalException.cs
- MaterialGroup.cs
- ApplicationId.cs
- safex509handles.cs
- GacUtil.cs
- TransformerInfo.cs
- XmlArrayItemAttribute.cs
- RadioButtonBaseAdapter.cs
- ClientOptions.cs
- WindowsSspiNegotiation.cs
- RSAOAEPKeyExchangeDeformatter.cs
- TdsParserStateObject.cs
- PropertyValue.cs
- Pts.cs
- DoubleConverter.cs
- JsonDeserializer.cs