LinkedList.Last プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > LinkedList.Last プロパティの意味・解説 

LinkedList.Last プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

LinkedList ノード最後ノード取得します

名前空間: System.Collections.Generic
アセンブリ: System (system.dll 内)
構文構文

Public ReadOnly Property
 Last As LinkedListNode(Of T)
Dim instance As LinkedList(Of
 T)
Dim value As LinkedListNode(Of
 T)

value = instance.Last
public LinkedListNode<T> Last { get;
 }
public:
property LinkedListNode<T>^ Last {
    LinkedListNode<T>^ get ();
}
/** @property */
public LinkedListNode<T> get_Last ()
public function get Last
 () : LinkedListNode<T>

プロパティ
LinkedList最後の LinkedListNode。

解説解説
使用例使用例

Last プロパティ使用するコード例および出力次に示します。このコード例では、文字列リンク リスト最後ノード削除しリスト末尾新しノード追加しLast プロパティ使用してそのノードマーク付け最後にノード削除してそのノードリスト先頭挿入します

このコード例および出力は、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
        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
    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
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

LinkedList.Last プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



LinkedList.Last プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS