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

CodeAssignStatement クラス

単純な代入ステートメント表します

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

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

10i という名前の整数変数代入する CodeAssignStatement作成するコード次に示します

' Assigns the value 10 to the integer variable "i".
Dim as1 As New CodeAssignStatement(New
 CodeVariableReferenceExpression("i"), New
 CodePrimitiveExpression(10))      

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

' i = 10
// Assigns the value of the 10 to the integer variable "i".
CodeAssignStatement as1 = new CodeAssignStatement(new
 CodeVariableReferenceExpression("i"), new CodePrimitiveExpression(10));

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

// i=10;
// Assigns the value of the 10 to the integer variable "i".
CodeAssignStatement^ as1 = gcnew CodeAssignStatement( gcnew CodeVariableReferenceExpression(
 "i" ),gcnew CodePrimitiveExpression( 10 ) );

// A C# code generator produces the following source code for the preceeding
 example code:
// i=10;
// Assigns the value of the 10 to the integer variable "i".
CodeAssignStatement as1 =
    new CodeAssignStatement(new CodeVariableReferenceExpression("i")
,
    new CodePrimitiveExpression((Int32)10));

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


このページでは「.NET Framework クラス ライブラリ リファレンス」からCodeAssignStatement クラスを検索した結果を表示しています。
Weblioに収録されているすべての辞書からCodeAssignStatement クラスを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からCodeAssignStatement クラス を検索

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

辞書ショートカット

すべての辞書の索引

「CodeAssignStatement クラス」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS