Example #1
0
        public ConstructorCall Init(string member, IExpression initValue, out Assignment assignment)
        {
            if (this.build != null)
            {
                throw new InvalidOperationException();
            }

            assignment = Assignment.CreateInitialization(NameReference.Create(varReference, member), initValue);
            this.objectInitialization.Add(assignment);
            return(this);
        }