| File: MS\Internal\Data\DataBindOperation.cs | Web Access |
| Project: src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationFramework\PresentationFramework.csproj (PresentationFramework) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // // Description: Analogous to DispatcherOperation - one unit of cross-thread work. // using System.Windows.Threading; namespace MS.Internal.Data { internal class DataBindOperation { public DataBindOperation(DispatcherOperationCallback method, object arg, int cost = 1) { _method = method; _arg = arg; _cost = cost; } public int Cost { get { return _cost; } set { _cost = value; } } public void Invoke() { _method(_arg); } private DispatcherOperationCallback _method; private object _arg; private int _cost; } }