CodeArrayIndexerExpression クラスとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > CodeArrayIndexerExpression クラスの意味・解説 

CodeArrayIndexerExpression クラス

配列インデックスへの参照表します

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

<SerializableAttribute> _
<ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)> _
<ComVisibleAttribute(True)> _
Public Class CodeArrayIndexerExpression
    Inherits CodeExpression
Dim instance As CodeArrayIndexerExpression
[SerializableAttribute] 
[ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch)] 
[ComVisibleAttribute(true)] 
public class CodeArrayIndexerExpression : CodeExpression
[SerializableAttribute] 
[ClassInterfaceAttribute(ClassInterfaceType::AutoDispatch)] 
[ComVisibleAttribute(true)] 
public ref class CodeArrayIndexerExpression
 : public CodeExpression
/** @attribute SerializableAttribute() */ 
/** @attribute ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch) */ 
/** @attribute ComVisibleAttribute(true) */ 
public class CodeArrayIndexerExpression extends
 CodeExpression
SerializableAttribute 
ClassInterfaceAttribute(ClassInterfaceType.AutoDispatch) 
ComVisibleAttribute(true) 
public class CodeArrayIndexerExpression extends
 CodeExpression
解説解説
使用例使用例

x という名前の整数配列インデックス 5 を参照する CodeArrayIndexerExpression作成するコード次に示します

' Create an array indexer expression that references index 5 of array
 "x"
Dim ci1 As New CodeArrayIndexerExpression(New
 CodeVariableReferenceExpression("x"), New
 CodePrimitiveExpression(5))

' A Visual Basic code generator produces the following source code for
 the preceeding example code:

' x[5]
// Create an array indexer expression that references index 5 of array
 "x"
CodeArrayIndexerExpression ci1 = new CodeArrayIndexerExpression(new
 CodeVariableReferenceExpression("x"), new CodePrimitiveExpression(5));

// A C# code generator produces the following source code for the preceeding
 example code:

// x[5]
// Create an array indexer expression that references index 5 of array
 "x"
array<CodeExpression^>^temp = {gcnew CodePrimitiveExpression( 5 )};
CodeArrayIndexerExpression^ ci1 = gcnew CodeArrayIndexerExpression( gcnew CodeVariableReferenceExpression(
 "x" ),temp );

// A C# code generator produces the following source code for the preceeding
 example code:
// x[5]
// Create an array indexer expression that references index 5 of array
 "x"
CodeArrayIndexerExpression ci1 =
    new CodeArrayIndexerExpression(
    new CodeVariableReferenceExpression("x"),
    new CodeExpression[] { new CodePrimitiveExpression((Int32)5)
 });

// A VJ# code generator produces the following source code for the
// preceeding example code:
// x[5]
継承階層継承階層
System.Object
   System.CodeDom.CodeObject
     System.CodeDom.CodeExpression
      System.CodeDom.CodeArrayIndexerExpression
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

「CodeArrayIndexerExpression クラス」の関連用語

CodeArrayIndexerExpression クラスのお隣キーワード
検索ランキング

   

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



CodeArrayIndexerExpression クラスのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS