Opc.Ua.BinaryDecoder.ReadEncodeableArray C# (CSharp) Method

ReadEncodeableArray() public method

Reads an encodeable object array from the stream.
public ReadEncodeableArray ( string fieldName, System systemType ) : Array
fieldName string
systemType System
return System.Array
        public Array ReadEncodeableArray(string fieldName, System.Type systemType)
        {
            int length = ReadArrayLength();

            if (length == -1)
            {
                return null;
            }

            Array values = Array.CreateInstance(systemType, length);

            for (int ii = 0; ii < length; ii++)
            {
                values.SetValue(ReadEncodeable(null, systemType), ii);
            }

            return values;
        }