ses00001 solved
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user