DynamicMethod.Name Özellik

Tanım

Dinamik yöntemin adını alır.

public:
 virtual property System::String ^ Name { System::String ^ get(); };
public override string Name { get; }
member this.Name : string
Public Overrides ReadOnly Property Name As String

Özellik Değeri

String

Yönteminin basit adı.

Örnekler

Aşağıdaki kod örneği dinamik bir yöntemin adını görüntüler. Bu kod örneği, sınıfı için DynamicMethod sağlanan daha büyük bir örneğin parçasıdır.

// Display the name specified when the dynamic method was created.
// Note that the name can be blank.
Console::WriteLine("\r\nName: {0}", hello->Name);
// Display the name specified when the dynamic method was created.
// Note that the name can be blank.
Console.WriteLine("\r\nName: {0}", hello.Name);
' Display the name specified when the dynamic method was created.
' Note that the name can be blank.
Console.WriteLine(vbCrLf & "Name: {0}", hello.Name)

Açıklamalar

Not

Dinamik yöntemleri adlandırmak gerekli değildir.

Şunlara uygulanır