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

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

LinkedList.First プロパティ

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

LinkedList最初ノード取得します

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

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

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

プロパティ
LinkedList最初の LinkedListNode。

解説解説
使用例使用例

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

このコード例および出力は、LinkedList クラストピック取り上げている例の一部分です。

        sentence.AddFirst("today")
        Display(sentence)

        Dim mark1 As LinkedListNode(Of
 String) = sentence.First
        sentence.RemoveFirst()
        sentence.AddLast(mark1)
        Display(sentence)
<br /><span space="preserve">...</span><br
 />'today the fox jumped over the dog
'the fox jumped over the dog today
        sentence.AddFirst("today");
        Display(sentence);

        LinkedListNode<string> mark1 = sentence.First;
        sentence.RemoveFirst();
        sentence.AddLast(mark1);
        Display(sentence);
<br /><span space="preserve">...</span><br />//today
 the fox jumped over the dog
//the fox jumped over the dog today
    sentence->AddFirst("today");
    Display(sentence);

    LinkedListNode<String^>^ mark1 = sentence->First;
    sentence->RemoveFirst();
    sentence->AddLast(mark1);
    Display(sentence);
<br /><span space="preserve">...</span><br />//today
 the fox jumped over the dog
//the fox jumped over the dog today
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS