+ 1
How can I use a generic variable for Linked List?
5 odpowiedzi
+ 1
sneeze
I talk about this Linked List
https://www.sololearn.com/learn/634/?ref=app
0
Please explain your question
The LinkedList in C# is already a generic list.
https://www.geeksforgeeks.org/c-sharp-linkedlist-class/
What do you want to do ?
0
sneeze
The above program only works for int variables I want to work for all variables like string and double at the same time (with Generic variables)
0
Now I understand.
I have not created a generic class or linked list myself, but found some links that might be interesting.
https://www.geeksforgeeks.org/c-sharp-generics-introduction/
https://www.tutorialsteacher.com/csharp/csharp-generics
https://www.tutorialspoint.com/csharp/csharp_generics.htm
https://codereview.stackexchange.com/questions/216081/generic-singly-linked-list-implementation
https://stackoverflow.com/questions/35625043/how-to-make-single-linked-list-generic-in-c-sharp