ATMLWorkBench.model.Verb.Verb C# (CSharp) Method

Verb() public method

public Verb ( List &statements, int &index ) : System
statements List
index int
return System
        public Verb(ref List<String> statements, ref int index)
        {
            this.statements = statements;
            this.parts = statements[index].Split(',');
            this.index = index;
            if( parts.Count() > 0 )
            {
                command = parts[0].Trim();
                int idx = command.IndexOf(" ");//--- Find first space
                if( idx != -1 )
                {
                    lineNo = command.Substring(0, idx);
                    command = command.Substring(idx).Trim();
                }
            }
            if( parts.Count() > 1 )
                name = parts[1].Trim();
            index++;
        }

Same methods

Verb::Verb ( ) : System