This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Linq.Expressions; | |
| namespace Microsoft.EntityFrameworkCore | |
| { | |
| public static class IQueryableExtensions | |
| { | |
| public static IQueryable<TQuery> In<TKey, TQuery>( | |
| this IQueryable<TQuery> queryable, | |
| IEnumerable<TKey> values, | |
| Expression<Func<TQuery, TKey>> keySelector) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // add references WindowsBase, UIAutomationClient, UIAutomationTypes | |
| // using System.Windows.Automation; | |
| // using System.Windows; | |
| [DllImport("user32.dll", CharSet = CharSet.Auto)] static extern IntPtr SendMessage(IntPtr hWnd, UInt32 Msg, IntPtr wParam, IntPtr lParam); | |
| public void RightClick(AutomationElement element) | |
| { | |
| const int WM_LBUTTONDOWN = 0x0201; | |
| const int WM_LBUTTONUP = 0x0202; | |
| Point point = element.GetClickablePoint(); |