Marshaling deferred with ExcelReference.GetValue ?

Aug 21, 2014 at 6:07 PM
Hello,

When passing a range as a parameter with AllowReference=true e.g.

public static string TestDna( [ExcelArgument(AllowReference=true)] object v)
{
ExcelDna.Integration.ExcelReference reference = (ExcelDna.Integration.ExcelReference) v;
var j = reference.GetValue()
...
}

Is the data in the range parameter marshaled when the UDF is called or when GetValue() is called?

Many thanks for your help!
Coordinator
Aug 21, 2014 at 6:15 PM
When GetValue is called.
Aug 21, 2014 at 6:22 PM
Thanks Govert, that's a big help!