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
- mediaclock.cs
- WindowsTitleBar.cs
- RoleManagerModule.cs
- Match.cs
- TransactedReceiveScope.cs
- DbCommandTree.cs
- Parser.cs
- ExportOptions.cs
- DataGridCellsPanel.cs
- Emitter.cs
- ComponentSerializationService.cs
- SafeTokenHandle.cs
- SqlDataSourceCommandParser.cs
- ThreadAttributes.cs
- CodeDefaultValueExpression.cs
- DynamicMethod.cs
- FrameworkContentElementAutomationPeer.cs
- ToolStripItemCollection.cs
- MemberExpressionHelper.cs
- LocalizableAttribute.cs
- GraphicsContainer.cs
- ScrollProviderWrapper.cs
- RoutedUICommand.cs
- PassportPrincipal.cs
- ColorKeyFrameCollection.cs
- EditorBrowsableAttribute.cs
- Rijndael.cs
- SamlEvidence.cs
- ExpressionBuilderCollection.cs
- TypeUsageBuilder.cs
- SymLanguageVendor.cs
- ClientSettingsProvider.cs
- SplineKeyFrames.cs
- ScriptingAuthenticationServiceSection.cs
- PropertyInfo.cs
- DropShadowEffect.cs
- ClusterRegistryConfigurationProvider.cs
- PassportIdentity.cs
- Int16AnimationUsingKeyFrames.cs
- ListViewCancelEventArgs.cs
- File.cs
- DrawingAttributeSerializer.cs
- OletxVolatileEnlistment.cs
- TableLayoutStyleCollection.cs
- GeneralTransform3D.cs
- ImageCreator.cs
- RadioButtonPopupAdapter.cs
- TextTreeRootTextBlock.cs
- AdornerDecorator.cs
- GenericEnumerator.cs
- OdbcReferenceCollection.cs
- PersonalizationStateInfoCollection.cs
- Int32RectConverter.cs
- ModelTreeEnumerator.cs
- ServiceDebugBehavior.cs
- ReadOnlyTernaryTree.cs
- TimerExtension.cs
- DataSourceGroupCollection.cs
- ToolboxItem.cs
- XmlRootAttribute.cs
- HandlerMappingMemo.cs
- StrokeNodeOperations.cs
- SmtpReplyReader.cs
- TextServicesDisplayAttribute.cs
- HandlerBase.cs
- ErrorWrapper.cs
- WinCategoryAttribute.cs
- DependencyObjectType.cs
- TextMessageEncoder.cs
- SourceFileInfo.cs
- ToolStripControlHost.cs
- ToolboxCategory.cs
- TimelineGroup.cs
- XmlCustomFormatter.cs
- AddValidationError.cs
- CalendarDesigner.cs
- XmlDictionaryReaderQuotas.cs
- SecurityTokenTypes.cs
- MultiPageTextView.cs
- ApplicationSecurityInfo.cs
- TextBoxAutoCompleteSourceConverter.cs
- XsltInput.cs
- UnsafeNativeMethods.cs
- CodeConstructor.cs
- Separator.cs
- AssemblyNameProxy.cs
- AxisAngleRotation3D.cs
- SmiEventStream.cs
- ConfigurationSettings.cs
- ExpressionWriter.cs
- SignerInfo.cs
- GridViewSelectEventArgs.cs
- WindowsSpinner.cs
- DataGridViewCell.cs
- StrongBox.cs
- XamlHttpHandlerFactory.cs
- ProxyWebPartManager.cs
- VariableQuery.cs
- SystemIcmpV6Statistics.cs
- Point3DIndependentAnimationStorage.cs