diff --git a/C#/Datastructures/Queue/Queue.cs b/C#/Datastructures/Queue/Queue.cs index c52da6a..3bffe5f 100644 --- a/C#/Datastructures/Queue/Queue.cs +++ b/C#/Datastructures/Queue/Queue.cs @@ -12,7 +12,7 @@ return new Queue(); } - public static Queue Create(T value) + public static Queue Create(T? value) { //Create a new Queue with a head + tail QueueNode newNode = QueueNode.Create(value, default); @@ -24,7 +24,7 @@ }; } - public void Push(T value) + public void Push(T? value) { //Add an Item to the end of the Queue Count++;