Declared all nodes to be internal
This commit is contained in:
parent
cb09f165f8
commit
9fab683f85
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user