private static bool IsCssMatchStyle(AttributeMatchStyle matchStyle) { switch (matchStyle) { case AttributeMatchStyle.Equal: return(true); default: return(false); } }
private static string XpathAttributeCondition(string name, string value, AttributeMatchStyle style = AttributeMatchStyle.Equal) { switch (style) { case AttributeMatchStyle.Equal: return(string.Format("[@{0}={1}]", name, value)); case AttributeMatchStyle.Contains: return(string.Format("[contains(@{0},{1})]", name, value)); default: throw new ArgumentOutOfRangeException("style"); } }
public ScssAttribute(string name, string value, AttributeMatchStyle matchStyle) { Name = name; Value = value; MatchStyle = matchStyle; }
public ScssAttribute(string name, string value, AttributeMatchStyle matchStyle) { this.Name = name; this.Value = value; this.MatchStyle = matchStyle; }