This is the class I'm trying to instantiate:
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'm trying to create it:
button1.Tag = new Posicion() { 1, 1 };
I remember I used to be able to do something like this before, how can I instantiate an object by giving it values up front in the single line? Thanks!