Singly-linked list/Element definition: Difference between revisions

Content added Content deleted
(→‎{{header|C sharp|C#}}: Renamed members to follow .NET convention; added generic version and unsafe version)
(→‎{{header|C sharp|C#}}: Removed erroneous ref modifier from unsafe version)
Line 370: Line 370:
}</lang>
}</lang>


The most C-like possible version is basically C, but is somewhat limited in use by the fact that it is a ref struct.
The most C-like possible version is basically C.
<lang csharp>unsafe ref struct link {
<lang csharp>unsafe struct link {
public link* next;
public link* next;
public int data;
public int data;