Created QueueNode
This commit is contained in:
		
							
								
								
									
										20
									
								
								C#/Datastructures/Nodes/QueueNode.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								C#/Datastructures/Nodes/QueueNode.cs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,20 @@
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.Linq;
 | 
			
		||||
using System.Text;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
 | 
			
		||||
namespace C_.Datastructures.Nodes
 | 
			
		||||
{
 | 
			
		||||
    internal class QueueNode<T> : Node<T, QueueNode<T>>
 | 
			
		||||
    {
 | 
			
		||||
        public static QueueNode<T> Create(T? value, QueueNode<T>? next)
 | 
			
		||||
        {
 | 
			
		||||
            return new QueueNode<T>
 | 
			
		||||
            {
 | 
			
		||||
                Value = value,
 | 
			
		||||
                Next = next
 | 
			
		||||
            };
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user