title: How can I instantiate a class using the shorthand C# way?
body: <p>This is the class I'm trying to instantiate:</p>
  
  <pre><code>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; }
      }
  }
  </code></pre>
  
  <p>And here I'm trying to create it:</p>
  
  <pre><code>button1.Tag = new Posicion() { 1, 1 };
  </code></pre>
  
  <p>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!</p>