Hello,
I usually use C++ to program.
For treating types of variable in my function I use template, for example:
template<class t>
t myfunc(t myvar){
return, t+1;
}
Is that possible to use template in C#, if it can't, can someone tell me the best way to handle different types data instead of using overloading function?
Pujo
I usually use C++ to program.
For treating types of variable in my function I use template, for example:
template<class t>
t myfunc(t myvar){
return, t+1;
}
Is that possible to use template in C#, if it can't, can someone tell me the best way to handle different types data instead of using overloading function?
Pujo