Declared all nodes to be internal

This commit is contained in:
2022-04-13 21:12:18 +01:00
parent cb09f165f8
commit 9fab683f85
3 changed files with 4 additions and 4 deletions
+2 -2
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;
}
}
+1 -1
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;
}
}