/// <summary> /// Gets the string representation of the specified property condition. /// </summary> /// <param name="condition">The condition.</param> /// <returns>The string representation.</returns> private static string ToString(PropertyCondition condition) { var property = AutomationPropertyHelper.ProgrammaticName(condition.Property); var value = condition.Value.ToString(); return(property + "='" + value + "'"); }
/// <summary> /// Gets the string representation of the specified string property condition. /// </summary> /// <param name="condition"></param> /// <returns></returns> private static string ToString(StringPropertyCondition condition) { var property = AutomationPropertyHelper.ProgrammaticName(condition.Property); var value = (string)condition.Value; var op = condition.Matcher.ToString(); return(property + op + "'" + value + "'"); }