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
- DoubleKeyFrameCollection.cs
- MasterPageParser.cs
- MediaSystem.cs
- HashCodeCombiner.cs
- ExternalException.cs
- CultureInfoConverter.cs
- XamlTypeMapper.cs
- RemotingServices.cs
- RPIdentityRequirement.cs
- InstalledVoice.cs
- ParameterBinding.cs
- GridSplitter.cs
- SponsorHelper.cs
- WmlLiteralTextAdapter.cs
- PhysicalAddress.cs
- DrawingBrush.cs
- ControlDesigner.cs
- ReadOnlyPermissionSet.cs
- HtmlHead.cs
- CalendarDay.cs
- Int32RectConverter.cs
- Misc.cs
- HandledEventArgs.cs
- CapabilitiesUse.cs
- ItemDragEvent.cs
- MultiPropertyDescriptorGridEntry.cs
- TraversalRequest.cs
- SmiMetaData.cs
- PointLightBase.cs
- CompilationPass2TaskInternal.cs
- QuerySetOp.cs
- QuaternionAnimation.cs
- _ListenerAsyncResult.cs
- TraceContextRecord.cs
- PlatformCulture.cs
- PropertyChangedEventArgs.cs
- RuntimeConfigurationRecord.cs
- HtmlEmptyTagControlBuilder.cs
- ExpressionPrinter.cs
- PointHitTestResult.cs
- TabControl.cs
- WebInvokeAttribute.cs
- Substitution.cs
- FactoryRecord.cs
- UnicodeEncoding.cs
- RenderContext.cs
- Group.cs
- CommonDialog.cs
- DataGridViewComboBoxCell.cs
- XmlSortKeyAccumulator.cs
- AppendHelper.cs
- XmlJsonWriter.cs
- AppDomainFactory.cs
- ReadOnlyHierarchicalDataSource.cs
- InheritablePropertyChangeInfo.cs
- webeventbuffer.cs
- Cursor.cs
- SerializerProvider.cs
- ObjectComplexPropertyMapping.cs
- UnsafeNativeMethods.cs
- PortCache.cs
- UrlPath.cs
- RootBrowserWindow.cs
- DataGridViewCellMouseEventArgs.cs
- ScaleTransform.cs
- ListViewCancelEventArgs.cs
- AspNetHostingPermission.cs
- IdentityNotMappedException.cs
- KeyedHashAlgorithm.cs
- BindingSource.cs
- XmlnsCompatibleWithAttribute.cs
- TreeViewImageKeyConverter.cs
- GroupBox.cs
- XmlSchemaDocumentation.cs
- ObjectDataSourceStatusEventArgs.cs
- OracleConnectionStringBuilder.cs
- WrapPanel.cs
- CustomGrammar.cs
- HttpListenerPrefixCollection.cs
- AdornedElementPlaceholder.cs
- TagPrefixAttribute.cs
- InstanceCompleteException.cs
- DataSvcMapFileSerializer.cs
- SqlDataSource.cs
- ServerTooBusyException.cs
- PartialTrustValidationBehavior.cs
- PackageFilter.cs
- IndependentAnimationStorage.cs
- SqlConnectionFactory.cs
- Object.cs
- AuthenticationModuleElement.cs
- SynchronizedReadOnlyCollection.cs
- LocalizationComments.cs
- ASCIIEncoding.cs
- ActivityInterfaces.cs
- OdbcInfoMessageEvent.cs
- SimpleParser.cs
- BoundingRectTracker.cs
- ListViewItem.cs
- UpdateCommand.cs