Uuuh... Sometimes life could be so easy if I'd only look in the right place: The STL/CLR vector container has a method that does nothing more and nothing less than returning an array constructed out of the vector's contents. It's called - what a surprise: to_array().
So the only thing I had to do was to replace the last two lines of the function body I posted above by
Sorry for wasting your time...Code:return vctHolidays->to_array();![]()




Reply With Quote
