/// <summary> /// Creates a new array value. /// </summary> /// <param name="valueFactory">The object used to create default elements with.</param> /// <param name="elementType">The type of the elements stored in the array.</param> /// <param name="length">The number of elements stored in the array.</param> public HleArrayValue(IValueFactory valueFactory, TypeSignature elementType, int length) { ElementType = elementType; Type = elementType.MakeSzArrayType(); _valueFactory = valueFactory; _values = new IConcreteValue[length]; for (int i = 0; i < length; i++) _values[i] = _valueFactory.CreateValue(ElementType, true); }