Fix PureResolve
This commit is contained in:
@@ -233,4 +233,18 @@ public class Link<TObject> : IEnumerable<TObject>
|
|||||||
Remove(res);
|
Remove(res);
|
||||||
return resValue;
|
return resValue;
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// remove the last item
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
/// <exception cref="Exception"></exception>
|
||||||
|
public TObject RemoveLast()
|
||||||
|
{
|
||||||
|
LinkNode<TObject> res = Last;
|
||||||
|
if (res.IsEnding)
|
||||||
|
throw new Exception("TODO");
|
||||||
|
TObject resValue = res.Value;
|
||||||
|
Remove(res);
|
||||||
|
return resValue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user