Updated repo to be C# only
This commit is contained in:
		
							
								
								
									
										15
									
								
								Datastructures/Generic/DirectedNode.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								Datastructures/Generic/DirectedNode.cs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
using System;
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
using System.Linq;
 | 
			
		||||
using System.Text;
 | 
			
		||||
using System.Threading.Tasks;
 | 
			
		||||
 | 
			
		||||
namespace C_.Datastructures.Generic
 | 
			
		||||
{
 | 
			
		||||
    abstract internal class DirectedNode<T, NodeType>
 | 
			
		||||
    {
 | 
			
		||||
        public T? Value { get; set; } = default;
 | 
			
		||||
        internal NodeType? Left { get; set; } = default;
 | 
			
		||||
        internal NodeType? Right { get; set; } = default;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										10
									
								
								Datastructures/Generic/UndirectedNode.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								Datastructures/Generic/UndirectedNode.cs
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
using System.Collections.Generic;
 | 
			
		||||
 | 
			
		||||
namespace C_.Datastructures.Generic
 | 
			
		||||
{
 | 
			
		||||
    abstract internal class UndirectedNode<T, NodeType>
 | 
			
		||||
    {//Generic Node type that every other type inherits from
 | 
			
		||||
        public T? Value { get; set; } = default;
 | 
			
		||||
        internal NodeType? Next { get; set; } = default;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user