public CreateArrayOnInstanceWithObject ( object baseType, string arrayProperty, object item ) : bool | ||
baseType | object | |
arrayProperty | string | |
item | object | |
return | bool |
public bool CreateArrayOnInstanceWithObject(object baseType, string arrayProperty, object item)
{
SetError();
// *** Create instance and assign
Array ar = CreateArrayInstanceInternal(baseType, arrayProperty, 1);
if (ar == null)
return false;
// *** assign the item passed in
ar.SetValue(item, 0);
ReflectionUtils.SetPropertyExCom(baseType, arrayProperty, ar);
return true;
}