CSharpTest.Net
AddLast(T) Method
See Also  Example Send Feedback Download Help File
CSharpTest.Net.Library Assembly > CSharpTest.Net.Collections Namespace > LListNode.LList<T> Class > AddLast Method : AddLast(T) Method

value

Glossary Item Box

Adds the node to the end of the list

Syntax

Visual Basic (Declaration) 
Public Overloads Sub AddLast( _
   ByVal value As T _
) 
C# 
public void AddLast( 
   T value
)

Parameters

value

Example

Library/Library.Test/TestLinkList.cs

C#Copy Code
LListNode<string>.LList list = new LListNode<string>.LList();
Assert.IsTrue(list.IsEmpty);
list.AddLast("B");
Assert.IsFalse(list.IsEmpty);
list.AddFirst("A");
Assert.AreEqual("A", list.First.Value);
Assert.AreEqual("B", list.Last.Value);
VB.NETCopy Code
Dim list As New LListNode(Of String).LList()
Assert.IsTrue(list.IsEmpty)
list.AddLast("B")
Assert.IsFalse(list.IsEmpty)
list.AddFirst("A")
Assert.AreEqual("A", list.First.Value)
Assert.AreEqual("B", list.Last.Value)

Requirements

Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7

See Also

Generated with Document! X 2011 by Innovasys