07-15-2013 08:20 AM
I am using C# with NET4.0. I would like to use the object "Task" in system.Threading.Tasks for parallel processing. But "Task" is already defined in DAQmx namespace. I find that I will have to explictly state the namespace (either system.Threading.Tasks or NationalInstruments.DAQmx) to distinguish which "Task" I am referring to every time I use "Task". Is there an easier way to do this.
Best Regards
Shane
Solved! Go to Solution.
07-15-2013 10:02 AM
In C#, you can declare an alias for a type with a using
directive, like:
using DAQmxTask = NationalInstruments.DAQmx.Task;
using ParallelTask = System.Threading.Tasks.Task;
07-15-2013 10:28 AM
Thanks a million for quick reply.
Much appreciated.
Shane