Exemplo n.º 1
0
        public static void RemoveLiteralAndPlaceholders(this Snippet snippet, string identifier)
        {
            Literal literal = snippet.Literals.FirstOrDefault(f => f.Identifier == identifier);

            if (literal != null)
            {
                snippet.Literals.Remove(literal);
                snippet.ReplacePlaceholders(literal.Identifier, "");
            }
        }
Exemplo n.º 2
0
 public static void RemoveLiteralAndReplacePlaceholders(this Snippet snippet, string identifier, string replacement)
 {
     snippet.RemoveLiteral(identifier);
     snippet.ReplacePlaceholders(identifier, replacement);
 }