Histórico da Página
...
Bloco de código | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
#include "tlpp-core.th" @annotation DataAnnotation nickname as char @end Class GetDataAnnotation @DataAnnotation(nickname = "Company") Public data data1 Public Method New() EndClass Method New() class GetDataAnnotation Return Self Function u_testGetDataAnnotation() Local jRet jRettestgetClassSourceName local cRet := '' as character cRet := Reflection.getDataAnnotationgetClassSourceName("GetDataAnnotationreflection.getClassSourceName", "data1", "DataAnnotationAnnotationgetClassSourceName") if(valType(jRetcRet) <> 'U' .and. !empty(cRet)) Conout("The source Conout(jRet["nickname"]) EndIf name of annotation is: " + cValToChar(cRet)) else Conout('Erro na execução da Reflection.getClassSourceName') endif Return |
Resultado dos Exemplos
Companyexemplo1.tlpp
Abrangência
1724.3.0.30
Veja também
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas