I have to type Console.WriteLine() many times in my code. Is it possible to create a shortcut for Console.WriteLine so that I can use it like...
CW=Console.Wr
To piggyback on Michael Stum's answer, we could also make object as the type parameter to Action delegate like so:
Action
I usually do that on my C# Interactive window to quickly print out objects that I'm working with.
For example:
> var grid = driver.FindElements(By.XPath("//div[@class='ReactVirtualized__Grid__innerScrollContainer']//div"));
> cw(grid);
System.Collections.ObjectModel.ReadOnlyCollection`1[OpenQA.Selenium.IWebElement]
>