3 ms·
C# has features close to this, property initialiser syntax [1] and dynamic object literals [2]. [1] https://docs.microsoft.com/en-us/dotnet/csharp/programming-
by clusmore 9y ago
C# has features close to this, property initialiser syntax [1] and dynamic object literals [2].
[1] https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/how-to-initialize-objects-by-using-an-object-initializer https://docs.microsoft.com/en-us/dotnet/csharp/programming-g...
[2] https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/anonymous-types https://docs.microsoft.com/en-us/dotnet/csharp/programming-g...