// Returns string representation of the type. The TypeName() method doesn't work for arrays, this method takes care of that. static string GetParameterTypeName(QUT.PERWAPI.Type type) { if (type is QUT.PERWAPI.Array) { return(GetParameterTypeName(((QUT.PERWAPI.Array)type).ElemType()) + "[]"); } else { return(type.TypeName()); } }