Esempio n. 1
0
        public Utility(
            ICompactComponent compact,
            IFunctionComponent function,
            IMathComponent math,
            IObjectComponent obj,
            IStringComponent str)
        {
            if (compact == null)
            {
                throw new ArgumentNullException("compact");
            }

            if (function == null)
            {
                throw new ArgumentNullException("function");
            }

            if (math == null)
            {
                throw new ArgumentNullException("math");
            }

            if (obj == null)
            {
                throw new ArgumentNullException("obj");
            }

            if (str == null)
            {
                throw new ArgumentNullException("str");
            }

            _compact  = compact;
            _math     = math;
            _function = function;
            _object   = obj;
            _string   = str;
        }
Esempio n. 2
0
 public StringComponentInstruction(ScopePrototype upperScope, IStringComponent literal) : base(upperScope)
 {
     Literal = literal;
 }