public static string ToDisplayText <T>(this FlaUI.Core.IAutomationProperty <T> automationProperty) { T value; var success = automationProperty.TryGetValue(out value); //return success ? (value == null ? String.Empty : value.ToString()) : "Not Supported"; return(success ? (value == null ? String.Empty : value.ToString()) : ""); }
private string FromAutomationProperty(FlaUI.Core.IAutomationProperty <string> value) { return(value.ToDisplayText()); }