Załóżmy dla przykładu taki o to kod: public class Point { public int X; public int Y; } class Program { public Point Position { get; set; } public void SetPosition(int x, int y) { Position.X = x; Position.Y = y; } static void Main(string[] args) { var p = new Program(); p.SetPosition(10, 10); Console.ReadLine(); } }

Tagi: struktury
Źródło: blog.gutek.pl
Dziel się z innymi:
.neting in the free world | Struktury jako własności klas

Inne 5159 dni, 7 godzin, 10 minut temu gordon_shumway 72 pokaż kod licznika zwiń

Najaktywniejsi w tym miesiącu