Однако, когда сценарий завершается и возвращается в вызывающую программу, таблица данных все еще существует, но в ней нет ни столбцов, ни строк... ?? Тем не менее, они существовали в сценарии (для проверки я использовал MessageBox.Show)
Код: Выделить всё
C# Application
Creates DataSet - and DataTable X
Call CS-Script
Creates DataTable Y - and adds to the Dataset that was passed into this script routine
Runs the Copy() method of the datatable to duplicate Table X into Y
I check the Cols and Rows - and they are what they should be (6 Cols and ~2000 rows)
Call Passes back to my C# application
DataTable Y still exists - but no Cols or Rows ???
Кто-нибудь знает, почему я теряю определения столбцов и строк из метода COPY(), вызываемого в процедуре CS-SCript?
Подробнее здесь: https://stackoverflow.com/questions/792 ... n-to-c-sha
Мобильная версия