internal static IDynamicProperty[] GrowPropertiesArray(IDynamicProperty[] props)
{
// grow the array of IContextProperty objects
int newSize = (props != null ? props.Length : 0) + GROW_BY;
IDynamicProperty[] newProps = new IDynamicProperty[newSize];
if (props != null)
{
// Copy existing properties over.
Array.Copy(props, newProps, props.Length);
}
return newProps;
}