Пример #1
0
        internal Clause(ProcedureClauseList container, CodeSentence codeSentence)
        {
            if (container == null)
            {
                throw new ArgumentNullException("container");
            }
            if (codeSentence == null)
            {
                throw new ArgumentNullException("codeSentence");
            }

            Container     = container;
            _codeSentence = codeSentence;
        }
Пример #2
0
 internal Procedure(ProgramProcedureList container, Functor functor)
 {
     if (container == null)
     {
         throw new ArgumentNullException("container");
     }
     if (functor == null)
     {
         throw new ArgumentNullException("functor");
     }
     Container = container;
     Functor   = functor;
     Clauses   = new ProcedureClauseList(this, new ObservableCollection <Clause>());
 }