DynamicMethod.Name Propriedade

Definição

Obtém o nome do método dinâmico.

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

Valor da propriedade

O nome simples do método.

Exemplos

O exemplo de código a seguir exibe o nome de um método dinâmico. Este exemplo de código faz parte de um exemplo maior fornecido para a DynamicMethod classe .

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

Comentários

Observação

Não é necessário nomear métodos dinâmicos.

Aplica-se a