Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public struct Point
- {
- public int X { get; set; }
- public int Y { get; set; }
- }
- namespace ConsoleApplication
- {
- class Program
- {
- static void Main(string[] args)
- {
- var points = new Point[1];
- var point = points[0];
- point.X = 10;
- Console.WriteLine(points[0].X);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement