J Sharp
O J# (pronuncia-se djei-charp) é uma linguagem de programação criada pela Microsoft para ser sucessor do Visual J++, devido ao fim do acordo legal entre as empresas Microsoft e Sun, e os conseqüentes processos que ocorreram.[1]
O J# basea-se na plataforma .NET e a Java Language Especification da Sun, possuindo assim sintaxe semelhante ao Java da Sun. Os programas criados nessa linguagem não tem suporte na Java Virtual Machine, mas programas feitos em Java podem ser transportados para .NET.[2]
Exemplo de Código J#
private DataSet BuildXML()
{
//Instancia de um objeto DataTable com o nome Agenda
DataTable dt = new DataTable("Agenda");
//dando nome aos titulos das Colunas
dt.get_Columns().Add("Nome").toString();
dt.get_Columns().Add("Endereco").toString();
dt.get_Columns().Add("Telefone").toString();
dt.get_Columns().Add("Email").toString();
//Instancia de um objeto DataSet
DataSet dsAgenda = new DataSet();
//Adição do grid no DataSet
dsAgenda.get_Tables().Add(dt);
//Escreve as informações do DataSet no arquivo XML
ds.WriteXml(NomeArqXML, System.Data.XmlWriteMode.WriteSchema);
return dsAgenda;
}
Ver também
Referências
- ↑ kexu (21 de janeiro de 2022). «Visual J# Home». learn.microsoft.com (em inglês). Consultado em 5 de agosto de 2023
- ↑ «Java to .NET Framework Migration Workshop: Free Online Training». web.archive.org. 23 de abril de 2008. Consultado em 5 de agosto de 2023
Ligações externas
- «Página oficial» (em inglês)
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.