Caprices

CodeThisReferenceExpression

メンバ

コンストラクタ

public CodeThisReferenceExpression();
概要
System.CodeDom.CodeThisReferenceExpression クラスの新しいインスタンスを初期化します。

▲ページ先頭へ

プロパティ

UserData
現在のオブジェクトのユーザー定義可能なデータを取得します。 (Inherited from CodeObject )

▲ページ先頭へ

メソッド

Equals(Object)
指定したオブジェクトが、現在のオブジェクトと等しいかどうかを判断します。 (Inherited from Object)
GetHashCode()
既定のハッシュ関数として機能します。 (Inherited from Object)
GetType()
現在のインスタンスの Type を取得します。 (Inherited from Object)
MemberwiseClone()
現在の Object の簡易コピーを作成します。 (Inherited from Object)
ToString()
現在のオブジェクトを表す文字列を返します。 (Inherited from Object)

▲ページ先頭へ

次のコード例に示しますを使用、CodeThisReferenceExpressionを現在のオブジェクトを参照してください。


// Invokes the TestMethod method of the current type object.
// 現在のタイプオブジェクトのTestMethod方法をもたらす。
CodeMethodReferenceExpression methodRef1 = 
	new CodeMethodReferenceExpression( 
		new CodeThisReferenceExpression(), 
		"TestMethod" 
	);
CodeMethodInvokeExpression invoke1 = 
	new CodeMethodInvokeExpression( 
		methodRef1, 
		new CodeParameterDeclarationExpression[] {} 
	);                                    

// A C# code generator produces the following source code for the preceeding example code:
// A C#コードジェネレータはpreceeding例コードのための以下のソースコードを作り出す:

//        this.TestMethod();

▲ページ先頭へ

定義


[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Serializable]
public class CodeThisReferenceExpression : System.CodeDom.CodeExpression

▲ページ先頭へ

クラス


#region アセンブリ System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// C:¥Program Files (x86)¥Reference Assemblies¥Microsoft¥Framework¥.NETFramework¥v4.6.1¥System.dll
#endregion

using System.Runtime.InteropServices;

namespace System.CodeDom
{
	//
	// 概要:
	//     現在のローカル クラスのインスタンスへの参照を表します。
	[ClassInterface( ClassInterfaceType.AutoDispatch )]
	[ComVisible( true )]
	public class CodeThisReferenceExpression : CodeExpression
	{
		//
		// 概要:
		//     System.CodeDom.CodeThisReferenceExpression クラスの新しいインスタンスを初期化します。
		public CodeThisReferenceExpression();
	}
}

▲ページ先頭へ