in c# a method with list or list as argument for generic method
we have a c# wpf application that uses a c++ dll through an warpper cli project
every page in the application calls functions from the instance of the wrapper which is global
what we do now is to create one class that will be responsible do call functions from the wrapper
so that instance will be private.
A lot of setter and getter will now be only 2 template functions because some will be double and integer.
there is also a lot of function that start some programs in the dll and I want to write 1 function in the class with an enum argument that will tell me which function to call, they call the same function in the dll but some of them also required arguments and this is the problem
I can solve it with list or list but I don’t know if its a good solution or not
Getting size of a C++ class in a C application at compile time
In summary, I have written a C++ library and am now making a C wrapper to let C programmer use my lib.
I am able to get it to work by using raw pointers. Here’s what I do.