Exemplo n.º 1
0
        public ObjectSet(int objectCount)
        {
            int index;

            Fields4[] members;

            members = new Fields4[objectCount];

            for (index = 0; index < members.Length; index++)
            {
                members[index] = new Fields4();
            }

            this.allMembers = members;
            return;
        }
Exemplo n.º 2
0
        private void RefreshReferences(Fields4 instance, int index, Int64 iteration)
        {
            string capturedStr1;
            Int64  oldIteration;
            string oldString;

            oldIteration = instance.Vt200;

            if (oldIteration != 0)
            {
                oldString    = this.BuildString(index: index, iteration: oldIteration);
                capturedStr1 = instance.Str1;

                if (capturedStr1 != oldString)
                {
                    throw Util.Fail("Error: Observed a stale/bad Str1 value: {0} vs {1}\r\n", capturedStr1.Length, oldString.Length);
                }
            }

            instance.Str1  = this.BuildString(index: index, iteration: iteration);
            instance.Vt200 = iteration;
            return;
        }