-
-
Save adbre/746544f9ba927fc0706ec603fabf720c to your computer and use it in GitHub Desktop.
What is this C# syntax called?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Trine.CLI | |
{ | |
class Program | |
{ | |
static void Main() | |
{ | |
new Crash | |
{ | |
Inner = {Name = "what"} | |
}; | |
} | |
} | |
public class InnerType { | |
public string Name { get; set; } | |
} | |
public class Crash | |
{ | |
public Crash() { | |
Inner = new InnerType(); | |
} | |
public InnerType Inner { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment