LinkedList.RemoveLast メソッド
アセンブリ: System (system.dll 内)

Dim instance As LinkedList(Of T) instance.RemoveLast

例外の種類 | 条件 |
---|---|
InvalidOperationException | LinkedList が空です。 |


RemoveLast メソッドのコード例および出力を次に示します。このコード例では、RemoveLast メソッドを使用して文字列のリンク リストの最後のノードを削除し、新しいノードをリストの末尾に追加し、そのノードにマークを付けて削除してから、リストの末尾に挿入します。
このコード例および出力は、LinkedList クラスのトピックで取り上げている例の一部分です。
sentence.RemoveLast() sentence.AddLast("yesterday") Display(sentence) mark1 = sentence.Last sentence.RemoveLast() sentence.AddFirst(mark1) Display(sentence) <br /><span space="preserve">...</span><br />'the fox jumped over the dog yesterday 'yesterday the fox jumped over the dog

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


LinkedList ジェネリック クラス
LinkedList メンバ
System.Collections.Generic 名前空間
LinkedList.Remove メソッド
RemoveFirst
LinkedList.Clear メソッド
AddLast
Weblioに収録されているすべての辞書からLinkedList.RemoveLast メソッドを検索する場合は、下記のリンクをクリックしてください。

- LinkedList.RemoveLast メソッドのページへのリンク