This is the class I'm trying to create:
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Test { public class Posicion { public int X { get; set; } public int Y { get; set; } } }
And here I am trying to create it:
button1.Tag = new Posicion() { 1, 1 };
I remember that before I could do something like this, how can I create an instance of an object by specifying its values ββin one line? Thanks!
delete
source share