예제 #1
0
 /// <summary>
 /// Constructor that takes in the data to be added to the node
 /// </summary>
 /// <param name="data">the data to the node</param>
 public SinglyNode(T data)
 {
     Data = data;
     Next = null;
 }
예제 #2
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 public SinglyNode()
 {
     Data = default;
     Next = null;
 }