Esempio n. 1
0
 public void AddTerminal(CommonTerminal terminal)
 {
     CommonTerminal[] newTerminalArray = new CommonTerminal [Terminals.Length + 1];
     for (int i = 0; i < Terminals.Length; i++)
     {
         newTerminalArray[i] = Terminals[i];
     }
     newTerminalArray[Terminals.Length] = terminal;
     Terminals = newTerminalArray;
 }
Esempio n. 2
0
 public void AddTerminals(CommonTerminal[] newTerminals)
 {
     CommonTerminal[] newTerminalArray = new CommonTerminal[Terminals.Length + newTerminals.Length];
     for (int i = 0; i < Terminals.Length; i++)
     {
         newTerminalArray[i] = Terminals[i];
     }
     for (int i = 0; i < newTerminals.Length; i++)
     {
         newTerminalArray[Terminals.Length + i] = newTerminals[i];
     }
     Terminals = newTerminalArray;
 }