Exemplo n.º 1
0
        public ArrayAssignmentFrame(ArrayInstance <T> instance, Variable[] elements)
        {
            Elements = elements;
            Variable = new ServiceVariable(instance, this);
            if (typeof(T).MustBeBuiltWithFunc())
            {
                Variable.OverrideType(typeof(object[]));
            }

            ElementType = typeof(T);
        }
Exemplo n.º 2
0
        public ListAssignmentFrame(ListInstance <T> instance, Variable[] elements) : base(false)
        {
            ElementType = typeof(T);
            Variable    = new ServiceVariable(instance, this);

            if (ElementType.MustBeBuiltWithFunc())
            {
                Variable.OverrideType(typeof(object[]));
            }

            Elements = elements;
        }