I have an assignment in a language-independent class, and part of it is using templated functions like
T functionName(T ¶m1[], T ¶m2[]){ // do stuff }
I would like to write this program in C#, but I’ve ran into a problem.
How can I make this work in C#:
<pre><code> T functionName(ref List<T> param1, ref List<U> param2){ // do stuff } </code></pre>
?
If you intended param2 to be
List<U>Otherwise: