Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Base / System / Windows / Threading / DispatcherProcessingDisabled.cs / 1 / 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
- ViewStateException.cs
- IpcChannelHelper.cs
- PropertyDescriptorComparer.cs
- CompositeScriptReferenceEventArgs.cs
- AttributeConverter.cs
- RootBrowserWindowProxy.cs
- XmlUnspecifiedAttribute.cs
- ConfigurationPropertyAttribute.cs
- ParallelEnumerable.cs
- AuthorizationRule.cs
- _SpnDictionary.cs
- BitmapData.cs
- DataGridViewTextBoxColumn.cs
- _SSPISessionCache.cs
- WebPartDeleteVerb.cs
- AuthenticationConfig.cs
- Int64Animation.cs
- SmiEventSink_Default.cs
- AppSettingsExpressionEditor.cs
- XsltLibrary.cs
- FormatConvertedBitmap.cs
- BitmapEffectInput.cs
- DecimalFormatter.cs
- NavigationService.cs
- FlowDocument.cs
- _Rfc2616CacheValidators.cs
- CombinedGeometry.cs
- BufferedReadStream.cs
- Rect3D.cs
- SqlConnectionPoolGroupProviderInfo.cs
- CommandValueSerializer.cs
- UiaCoreApi.cs
- SettingsProviderCollection.cs
- SecurityManager.cs
- AVElementHelper.cs
- ExecutionEngineException.cs
- Axis.cs
- MemberDomainMap.cs
- IndexerNameAttribute.cs
- PeerEndPoint.cs
- ChangeProcessor.cs
- sortedlist.cs
- PeerApplication.cs
- MappingMetadataHelper.cs
- AssociatedControlConverter.cs
- WinFormsComponentEditor.cs
- SchemaImporterExtensionsSection.cs
- PasswordBoxAutomationPeer.cs
- XamlBrushSerializer.cs
- GridViewSortEventArgs.cs
- ManualResetEvent.cs
- DataGridView.cs
- Nullable.cs
- IISMapPath.cs
- CompositionAdorner.cs
- System.Data.OracleClient_BID.cs
- ResourceContainer.cs
- CngUIPolicy.cs
- StorageFunctionMapping.cs
- HtmlButton.cs
- RpcResponse.cs
- XmlAutoDetectWriter.cs
- _Semaphore.cs
- DataGridViewColumnHeaderCell.cs
- MergablePropertyAttribute.cs
- StaticSiteMapProvider.cs
- FormatSettings.cs
- WebBrowserNavigatedEventHandler.cs
- SpeechSeg.cs
- OdbcRowUpdatingEvent.cs
- RadioButton.cs
- sqlinternaltransaction.cs
- TransactedBatchContext.cs
- NetworkCredential.cs
- BasicKeyConstraint.cs
- MouseActionConverter.cs
- CommunicationObjectAbortedException.cs
- Membership.cs
- XamlWriter.cs
- MimeParameterWriter.cs
- XmlArrayItemAttributes.cs
- IndependentAnimationStorage.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- ServiceObjectContainer.cs
- FieldAccessException.cs
- PolicyStatement.cs
- FrameworkContextData.cs
- BufferAllocator.cs
- SuppressIldasmAttribute.cs
- ContentElementAutomationPeer.cs
- MimeReflector.cs
- ApplicationCommands.cs
- DataListGeneralPage.cs
- DocumentScope.cs
- WebRequest.cs
- CustomCategoryAttribute.cs
- DependencyProperty.cs
- ExtenderControl.cs
- UserControlCodeDomTreeGenerator.cs
- KeyValueConfigurationElement.cs