Metraipolis › archive › dc_fdfef50304f3
Anonymous type — Wikipedia (en)
- Source
- Wikipedia (en)
- Original
- https://en.wikipedia.org/wiki/Anonymous_type
- License (as archived)
- CC-BY-SA-4.0
- Archived
- 2026-11-09T12:16:59.618Z
- SHA-256 of the archived text
b602aa58f734fe437db3a521cd6cc9a037fb03e2c92c68e54fd4bd337818c99a- Stable URL of this page
https://metraipolis.com/documento/dc_fdfef50304f3
How to cite
Anonymous type — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Anonymous_type (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_fdfef50304f3 (Metraipolis archive dc_fdfef50304f3, sha256 b602aa58f734fe437db3a521cd6cc9a037fb03e2c92c68e54fd4bd337818c99a)
BibTeX
@misc{dcfdfef50304f3,
title = {Anonymous type — Wikipedia (en)},
howpublished = {Wikipedia (en)},
url = {https://en.wikipedia.org/wiki/Anonymous_type},
note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_fdfef50304f3; sha256 b602aa58f734fe437db3a521cd6cc9a037fb03e2c92c68e54fd4bd337818c99a},
year = {2026}
}Archived text
Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Anonymous_type. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Anonymous types are a feature of C# 3.0, Visual Basic .NET 9.0, Oxygene, Scala and Go that allows data types to encapsulate a set of properties into a single object without having to first explicitly define a type. This is an important feature for the SQL-like LINQ feature that is integrated into C# and VB.net. Since anonymous types do not have a named type, they must be stored in variables declared using the var keyword, telling the C# compiler to use type inference for the variable. The properties created are read-only in C#, however, they are read-write in VB.net. This feature should not be confused with dynamic typing. While anonymous types allow programmers to define fields seemingly "on the fly," they are still static entities. Type checking is done at compile time, and attempting to access a nonexistent field will cause a compiler error. This gives programmers much of the convenience of a dynamic language, with the type safety of a statically typed language. Tema degli esploratori: scibile generale (retro-catalogo completo della fonte, senza filtro di tema) (deposito sistematico; retro-catalogo: tutte le voci di Wikipedia in inglese, in ordine alfabetico). Fonte: Wikipedia in inglese, voce «Anonymous type» — https://en.wikipedia.org/wiki/Anonymous_type Wikidata Q567616 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q567616 Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Anonymous_type?action=history). Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza. Estratto dell'introduzione non modificato nel contenuto; revisione 1332475434, consultata il 2026-11-09T12:12:32.049Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 40ecd2e78d73d0931e67e1326d091551ef0addd75b0337ff0205578f18678b36