ses00001 solved

This commit is contained in:
Nitload
2023-05-27 04:36:06 +08:00
parent 384e8c8ad0
commit 9ca4a69a2a
23 changed files with 22 additions and 24 deletions
+4 -2
View File
@@ -13,8 +13,10 @@ namespace StgSharp
[NotNull]
protected ContainerNode<T> _id;
[AllowNull]
internal ContainerNode<T> ID { get; }
internal ContainerNode<T> ID
{
get { return _id; }
}
internal ContainerNode<T> Previous
{
-11
View File
@@ -17,10 +17,6 @@ namespace StgSharp
{
_heading = new ContainerNode<T>(null);
isEmpty = true;
#if DEBUG
Console.WriteLine("Linked list init ok");
#endif
}
public T First
@@ -49,19 +45,12 @@ namespace StgSharp
t.Next = _heading;
t.Previous = _heading;
isEmpty = false;
Console.WriteLine("1st item ok");
Console.WriteLine(_heading._next);
Console.WriteLine(_heading._previous);
}
else
{
Console.WriteLine("next begin");
t.Next = _heading;
Console.WriteLine("step 01 ok");
t.Previous = _heading.Previous;
Console.WriteLine("step 02 ok");
_heading._previous._next = t.ID;
Console.WriteLine("step 03 ok");
_heading._previous = t.ID;
}