Declared all nodes to be internal

This commit is contained in:
Luke Else 2022-04-13 21:12:18 +01:00
parent cb09f165f8
commit 9fab683f85
3 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ namespace C_.Datastructures.DoublyLinkedList
{
internal class DoublyLinkedListNode<T> : UndirectedNode<T, DoublyLinkedListNode<T>>
{//Inherits from Node
public DoublyLinkedListNode<T>? Prev { get; set; } = default;
internal DoublyLinkedListNode<T>? Prev { get; set; } = default;
public static DoublyLinkedListNode<T> Create(T? value, DoublyLinkedListNode<T>? next, DoublyLinkedListNode<T>? prev)
{

View File

@ -9,7 +9,7 @@ namespace C_.Datastructures.Generic
abstract internal class DirectedNode<T, NodeType>
{
public T? Value { get; set; } = default;
public NodeType? Left { get; set; } = default;
public NodeType? Right { get; set; } = default;
internal NodeType? Left { get; set; } = default;
internal NodeType? Right { get; set; } = default;
}
}

View File

@ -5,6 +5,6 @@ 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;
public NodeType? Next { get; set; } = default;
internal NodeType? Next { get; set; } = default;
}
}