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
- QuaternionAnimationUsingKeyFrames.cs
- SqlFormatter.cs
- ConsumerConnectionPointCollection.cs
- SystemNetworkInterface.cs
- RangeContentEnumerator.cs
- listitem.cs
- WS2007HttpBindingCollectionElement.cs
- ContainerUtilities.cs
- InternalsVisibleToAttribute.cs
- HatchBrush.cs
- CodePageEncoding.cs
- EntityType.cs
- SymbolEqualComparer.cs
- CompModHelpers.cs
- __Filters.cs
- ComboBoxAutomationPeer.cs
- ServicesUtilities.cs
- FieldNameLookup.cs
- RadioButtonList.cs
- DBSqlParserTableCollection.cs
- xml.cs
- ViewManager.cs
- HashStream.cs
- CustomSignedXml.cs
- MatrixTransform.cs
- ItemCollection.cs
- GlyphRunDrawing.cs
- SqlDependency.cs
- NavigationCommands.cs
- StickyNote.cs
- RegexTree.cs
- UserControl.cs
- ServiceCredentials.cs
- XmlDictionaryReaderQuotas.cs
- FontSourceCollection.cs
- WebPartTransformerCollection.cs
- CompareInfo.cs
- HandlerMappingMemo.cs
- DecoratedNameAttribute.cs
- ResourceProviderFactory.cs
- SQLString.cs
- RangeContentEnumerator.cs
- PkcsUtils.cs
- DateTime.cs
- DoubleLinkList.cs
- TemplateBamlTreeBuilder.cs
- GACIdentityPermission.cs
- EntityDataSourceChangingEventArgs.cs
- SQLMoney.cs
- XmlDocumentFragment.cs
- LingerOption.cs
- CodeBlockBuilder.cs
- HttpListenerTimeoutManager.cs
- EncoderNLS.cs
- StylusTip.cs
- VisualStyleRenderer.cs
- StatusCommandUI.cs
- XPathNodeList.cs
- ArgumentException.cs
- SamlDoNotCacheCondition.cs
- AssemblyBuilder.cs
- WebPartTransformerAttribute.cs
- OperandQuery.cs
- ServiceInfo.cs
- SingleAnimationUsingKeyFrames.cs
- AssemblyCache.cs
- ExpressionBuilder.cs
- SafeNativeMethods.cs
- JsonReader.cs
- FilteredXmlReader.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- BoolExpression.cs
- PipeException.cs
- ConstraintManager.cs
- BrushMappingModeValidation.cs
- XsltArgumentList.cs
- ObjectQueryProvider.cs
- MarkupCompiler.cs
- GroupItem.cs
- StringKeyFrameCollection.cs
- UITypeEditor.cs
- ClockController.cs
- DoubleLink.cs
- StateDesigner.cs
- MetadataCache.cs
- TrackBarRenderer.cs
- ButtonChrome.cs
- MultiTargetingUtil.cs
- BindingValueChangedEventArgs.cs
- MultiPageTextView.cs
- ListControlStringCollectionEditor.cs
- PageAdapter.cs
- AssemblyBuilderData.cs
- AssertFilter.cs
- Base64Encoder.cs
- MenuItemBinding.cs
- DeviceSpecificChoice.cs
- NullableBoolConverter.cs
- JsonReaderWriterFactory.cs
- ComplexBindingPropertiesAttribute.cs