bricelam / bricelam.github.io

Highlighting some of my more technical adventures
bricelam.net
3 stars 2 forks source link

C# Object Notation #34

Closed utterances-bot closed 1 year ago

utterances-bot commented 3 years ago

C# Object Notation | Brice’s Blog

JavaScript Object Notation (JSON) is a subset of the JavaScript language used for the definition and exchange of data. While I’m not proposing that we create a similar standard using C#, I do want to illustrate some of the rich object initialization syntax of the language. This terse syntax can come in handy when defining data for things like unit tests, templating models, etc.

https://www.bricelam.net/2015/02/01/csharp-object-notation.html

LupusInferni315 commented 3 years ago

It's probably not all that relevant but one could name it 'CPON' since the # symbol is called pound, I know it's a little less obvious, but it could still suffice