This is not possible in C #, however you can define an instance of an anonymous type as follows:
var x = new { SomeField = 1, SomeOtherField = "Two" };
This will be virtually the same, giving you an instance of a type that is specific to this variable and cannot be used outside the scope of variables.