DynamicMethod.Name Свойство

Определение

Получает имя динамического метода.

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

Значение свойства

Простое имя метода.

Примеры

В следующем примере кода отображается имя динамического метода. Этот пример входит в состав более крупного примера использования класса DynamicMethod.

// 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)

Комментарии

Примечание

Не обязательно называть динамические методы.

Применяется к