internal static void CheckNullElement(AutomationElement element) { if (element == null) { Console.WriteLine("Attempting to invoke pattern on null element"); AutomationWrapper.DumpVS(); throw new InvalidOperationException(); } }
private static void CheckNullElement(ITreeNode element) { if (element == null) { Console.WriteLine("Attempting to invoke pattern on null node"); AutomationWrapper.DumpVS(); throw new InvalidOperationException(); } }