Esempio n. 1
0
        public ArrayAssignmentFrame(ArrayInstance <T> instance, Variable[] elements)
        {
            Elements = elements;
            Variable = new ServiceVariable(instance, this);

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

            Elements = elements;
        }
Esempio n. 3
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);
        }
Esempio n. 4
0
        public void Add(ServiceVariable variable)
        {
            // TODO -- have to do more on naming too
            var index = AllFor(variable.Instance).Length + 1;

            if (index > 1)
            {
                variable.OverrideName(variable.Usage + "_" + index);
            }

            _cached.Add(variable);
        }
Esempio n. 5
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;
        }
Esempio n. 6
0
        public GetInstanceFrame(Instance instance)
        {
            Variable = new ServiceVariable(instance, this, ServiceDeclaration.ServiceType);

            _name = instance.Name;
        }