I’m pretty sure the answer to this is ‘no’, but I figure I’ll ask here anyway…
Is there any way, in CLR interop, from X++, to access and set values via an indexer?
I’m looking at using a .Net DLL for reading and writing spreadsheet files, and cell values can be set like this (in C#):
worksheet.Cells[1, 1].Value = “ID”;
worksheet.Cells[“A2”].Value = 12001;
I can’t figure out any way to access the indexer from X++. I’m thinking that, if I really want to use this DLL, I will have to write a wrapper for it in C# that wraps the indexer calls in a simple method that can be called from X++. Maybe I’m missing something though. Any helpful hints would be appreciated!