Přidat otázku mezi oblíbenéZasílat nové odpovědi e-mailemVyřešeno C# - štruktúra v halde?

ja viem, ze vzdy vies vsetko najlepsie :-D ale v tomto pripade sa mylis:

Like classes, structs are data structures that can contain data members and function members, but unlike classes, structs are value types and do not require heap allocation.

Struct constructors are invoked with the new operator, but that does not imply that memory is being allocated. Instead of dynamically allocating an object and returning a reference to it, a struct constructor simply returns the struct value itself (typically in a temporary location on the stack), and this value is then copied as necessary.

vid. C# Language Specification

Reakce na odpověď

1 Zadajte svou přezdívku:
2 Napište svou odpověď:
3 Pokud chcete dostat ban, zadejte libovolný text:

Zpět do poradny