AnsweredAssumed Answered

EdmBomInfo Quirk

Question asked by Aaron Larson on Aug 9, 2017
Latest reply on Aug 9, 2017 by Simon Turner

Hi Folks - I'm at a loss.  I have no idea why the same 2 lines of code have different results from an EPDM API Form example to an add-in hook that I'm trying to write. Here they are:


EdmBomInfo[] derivedBOMs = null;

aFile.GetDerivedBOMs (out derivedBOMs);


In the API example here these 2 lines work.  This is a add-in forms application that allows a user to select a file and access the BOMs.  When I try to replicate this in another add-in that is looking for a state change hook the 'out' argument gives me the error:

"Error CS1503 Argument 1: cannot convert from 'out EdmLib.EdmBomInfo[]' to 'out System.Array' "


Why the difference?  How do I get around it?  Other pertinent info... this is in C# and I'm mostly a hack, not a programmer.


*Edit - There seems to be a similar issue here complete with solution... but due to my hackiness I can't relate it to my issue.