joniles / MPXJ.Net

A .Net package providing a "native" wrapper around the MPXJ Java library
https://www.mpxj.org/
3 stars 1 forks source link

getActualWorkLabor() and getBudgetWorkLabor() in .NET #13

Open iMohannad opened 1 day ago

iMohannad commented 1 day ago

Hi,

I do not see a variable in Task.cs that matches javaapi docs of getActualWorkLabor() and geteBudgetWorkLabor().

How can I get these values from a Task object in MPXJ.Net?

Thank you

joniles commented 1 day ago

Ah! I've not being doing a good enough job of keeping the MPXJ.Net interface in sync with MPXJ (note to self: must invest some time into tooling to automate/check this!)

Anyhow, I will put together a new release with the missing properties.

You can work around this with something like:

var value = task.JavaObject.get(net.sf.mpxj.TaskField.ACTUAL_WORK_LABOR)

but you'll be getting back a Java type rather than a c# type.