Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / System / Windows / Threading / DispatcherProcessingDisabled.cs / 1305600 / DispatcherProcessingDisabled.cs
using System; namespace System.Windows.Threading { ////// A structure that allows for dispatcher processing to be /// enabled after a call to Dispatcher.DisableProcessing. /// public struct DispatcherProcessingDisabled : IDisposable { ////// Reenable processing in the dispatcher. /// public void Dispose() { if(_dispatcher != null) { _dispatcher.VerifyAccess(); _dispatcher._disableProcessingCount--; _dispatcher = null; } } ////// Checks whether this object is equal to another /// DispatcherProcessingDisabled object. /// /// /// Object to compare with. /// ////// Returns true when the object is equal to the specified object, /// and false otherwise. /// public override bool Equals(object obj) { if ((null == obj) || !(obj is DispatcherProcessingDisabled)) return false; return (this._dispatcher == ((DispatcherProcessingDisabled)obj)._dispatcher); } ////// Compute hash code for this object. /// ///A 32-bit signed integer hash code. public override int GetHashCode( ) { return base.GetHashCode(); } ////// Compare two DispatcherProcessingDisabled instances for equality. /// /// /// left operand /// /// /// right operand /// ////// Whether or not two operands are equal. /// public static bool operator ==(DispatcherProcessingDisabled left, DispatcherProcessingDisabled right) { return left.Equals(right); } ////// Compare two DispatcherProcessingDisabled instances for inequality. /// /// /// left operand /// /// /// right operand /// ////// Whether or not two operands are equal. /// public static bool operator !=(DispatcherProcessingDisabled left, DispatcherProcessingDisabled right) { return !(left.Equals(right)); } internal Dispatcher _dispatcher; // set by Dispatcher } } // 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
- RegexCode.cs
- LookupTables.cs
- DataServiceClientException.cs
- DisableDpiAwarenessAttribute.cs
- StringSource.cs
- PolicyDesigner.cs
- ParameterCollection.cs
- MimeObjectFactory.cs
- CustomLineCap.cs
- XmlObjectSerializerReadContext.cs
- CssClassPropertyAttribute.cs
- ObjectResult.cs
- Int32Rect.cs
- CookielessData.cs
- unitconverter.cs
- System.Data_BID.cs
- GridEntry.cs
- SelectQueryOperator.cs
- FigureParaClient.cs
- ApplicationServicesHostFactory.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- ListCardsInFileRequest.cs
- RetrieveVirtualItemEventArgs.cs
- FontStretchConverter.cs
- ComPlusDiagnosticTraceRecords.cs
- OneOfScalarConst.cs
- ISAPIApplicationHost.cs
- CodeDomDecompiler.cs
- WebPart.cs
- StackBuilderSink.cs
- PopupEventArgs.cs
- RequestQueryProcessor.cs
- BufferedOutputStream.cs
- SafeCancelMibChangeNotify.cs
- Rotation3DAnimationUsingKeyFrames.cs
- FlagsAttribute.cs
- UriExt.cs
- _ConnectOverlappedAsyncResult.cs
- SRef.cs
- AsymmetricAlgorithm.cs
- ActiveDocumentEvent.cs
- Transactions.cs
- Console.cs
- OleDbInfoMessageEvent.cs
- BrushConverter.cs
- NonBatchDirectoryCompiler.cs
- DynamicEntity.cs
- QilPatternVisitor.cs
- PreservationFileReader.cs
- _CommandStream.cs
- SQLRoleProvider.cs
- CompoundFileReference.cs
- NameTable.cs
- COM2ComponentEditor.cs
- KeyInfo.cs
- ObjectListCommandsPage.cs
- ProxyAttribute.cs
- ListControlDesigner.cs
- BasicKeyConstraint.cs
- StorageConditionPropertyMapping.cs
- EditBehavior.cs
- DataKeyArray.cs
- SafePEFileHandle.cs
- FixedDocument.cs
- RuleElement.cs
- SerializerWriterEventHandlers.cs
- QuaternionAnimation.cs
- StylusLogic.cs
- WindowsListViewSubItem.cs
- FunctionDescription.cs
- FileEnumerator.cs
- Material.cs
- RuntimeCompatibilityAttribute.cs
- DataGridViewColumnStateChangedEventArgs.cs
- RelationshipNavigation.cs
- SequentialActivityDesigner.cs
- UserControlParser.cs
- RequestBringIntoViewEventArgs.cs
- pingexception.cs
- TableCell.cs
- XmlParserContext.cs
- TypeSemantics.cs
- COM2IDispatchConverter.cs
- WorkflowServiceHostFactory.cs
- RoutedUICommand.cs
- DataSourceCacheDurationConverter.cs
- parserscommon.cs
- PrintController.cs
- DataGridViewRow.cs
- TimersDescriptionAttribute.cs
- HyperLinkColumn.cs
- SizeFConverter.cs
- SqlLiftWhereClauses.cs
- PrimarySelectionGlyph.cs
- WindowsStatusBar.cs
- EdmProviderManifest.cs
- ClientSettingsSection.cs
- PeerService.cs
- AssemblyCache.cs
- QilFactory.cs