|
|
|
|
|
by jakopo87
1716 days ago
|
|
You can define type aliases at the begin of the file to reduce verbosity, as example: using dic = System.Collections.Generic.Dictionary<string, string>;
Otherwise you can use an anonymous type: var person = new { name = "frank", address = new { city = "Berlin ", zip = 12345 } };
In this case you get a plain object, but all fields area read only. |
|