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
- WindowsFormsHelpers.cs
- BinaryFormatterWriter.cs
- ThreadSafeList.cs
- _BasicClient.cs
- DataColumnMappingCollection.cs
- Recipient.cs
- Selection.cs
- TargetConverter.cs
- PerformanceCounterPermissionEntry.cs
- Ipv6Element.cs
- DetailsViewInsertEventArgs.cs
- basevalidator.cs
- PointAnimation.cs
- connectionpool.cs
- ToolStripSeparator.cs
- WebContext.cs
- ZoneLinkButton.cs
- KeyedCollection.cs
- WorkflowWebHostingModule.cs
- PrefixQName.cs
- DataTableReaderListener.cs
- LayoutDump.cs
- ModuleElement.cs
- CacheHelper.cs
- IsolationInterop.cs
- MenuCommands.cs
- FrameworkTextComposition.cs
- ReachFixedDocumentSerializerAsync.cs
- VirtualPathData.cs
- TCEAdapterGenerator.cs
- SafeCoTaskMem.cs
- TraceHandlerErrorFormatter.cs
- RijndaelManagedTransform.cs
- MultilineStringConverter.cs
- TreeViewTemplateSelector.cs
- RectangleHotSpot.cs
- ToolBarButton.cs
- GetRecipientListRequest.cs
- StringConverter.cs
- ResolvedKeyFrameEntry.cs
- ReadonlyMessageFilter.cs
- SessionPageStatePersister.cs
- SafeNativeMethodsOther.cs
- MobileControlBuilder.cs
- Win32.cs
- MetadataCache.cs
- BooleanFunctions.cs
- ObjectKeyFrameCollection.cs
- DetailsViewRow.cs
- AtlasWeb.Designer.cs
- FacetChecker.cs
- BaseTemplateParser.cs
- SynchronizationLockException.cs
- Soap12ProtocolImporter.cs
- WrappingXamlSchemaContext.cs
- ScriptingRoleServiceSection.cs
- HtmlString.cs
- ContainerSelectorBehavior.cs
- _ChunkParse.cs
- SizeAnimation.cs
- SqlSupersetValidator.cs
- Binding.cs
- KeySpline.cs
- _FtpControlStream.cs
- DesignerSerializationVisibilityAttribute.cs
- sqlstateclientmanager.cs
- DynamicScriptObject.cs
- DefaultValueTypeConverter.cs
- IDReferencePropertyAttribute.cs
- ResponseStream.cs
- CheckBoxAutomationPeer.cs
- CircleHotSpot.cs
- XPathCompileException.cs
- UrlMappingsSection.cs
- SqlFileStream.cs
- BasicExpressionVisitor.cs
- MouseButton.cs
- PointUtil.cs
- XPathScanner.cs
- PropertyRecord.cs
- QilBinary.cs
- Page.cs
- CompositeKey.cs
- LambdaCompiler.Address.cs
- UnsafeNativeMethods.cs
- RichTextBoxConstants.cs
- AssemblyGen.cs
- ListBindingConverter.cs
- NamespaceList.cs
- MachineKeySection.cs
- MenuItem.cs
- oledbmetadatacolumnnames.cs
- TypeSchema.cs
- ParallelDesigner.cs
- EastAsianLunisolarCalendar.cs
- TypeUtils.cs
- ModelVisual3D.cs
- PropertyDescriptor.cs
- ProviderSettingsCollection.cs
- CacheDependency.cs