Clear() public méthode

This will empty the Template so that the toString paramater will return null. This is used so that the same Template can be recycled for different tokens.
public Clear ( ) : void
Résultat void
Exemple #1
0
 /// <summary>
 /// This will replace the accumulated for an system variable
 /// name with the value of that system variable. If a value
 /// does not exist for the variable name, then the name is put
 /// into the value so that the value remains unmodified.
 /// </summary>
 public void Replace()
 {
     if (name.Length() > 0)
     {
         Replace(name);
     }
     name.Clear();
 }
Exemple #2
0
 /// <summary>
 /// This method is used to clear the contents of the buffer. This
 /// includes the contents of all buffers used to transform the
 /// value of the buffered text with system variable values.
 /// Once invoked the instance can be reused as a clean buffer.
 /// </summary>
 public void Clear()
 {
     name.Clear();
     text.Clear();
     source.Clear();
     off = 0;
 }