Westwind.WebConnection.wwDotNetBridge.CreateArrayOnInstance C# (CSharp) Method

CreateArrayOnInstance() public method

Creates an array instance of a given type and size. Note the elements of this array are null/default and need to be set explicitly
public CreateArrayOnInstance ( object baseType, string arrayProperty, int size ) : bool
baseType object Object instance on which to create the array
arrayProperty string String property/field name of the array to create
size int Size of the array to createArray
return bool
        public bool CreateArrayOnInstance(object baseType, string arrayProperty, int size)
        {
            SetError();

            Array ar = CreateArrayInstanceInternal(baseType, arrayProperty, size);
            if (ar == null)
                return false;

            ReflectionUtils.SetPropertyExCom(baseType, arrayProperty, ar);

            return true;
        }
wwDotNetBridge