When you create a new anonymous object using the following syntax:
string name = "Foo"; var myObject = new { name };
You get an object with a property named 'name':
myObject.name == "Foo"; //true
What method does C # use to retrieve a variable name?
Basically, this expression is equivalent to
new { name = name }
since an explicit property name is not provided.
# name. (, , ). . ( ). - .
name
: " ?" ( ), , . . , , , , , . , , .
" ?" " , ". , , , ( , , ); .
Source: https://habr.com/ru/post/1719192/More articles:Show Pretty Code in Django - pythonsleep mode processing in java service - javaPackaging Problems - objective-cDisplay Django code from a Django template - djangoЕсть ли gcc/Xcode прагма для подавления предупреждений? - gccHow can I remove while (true) from my loop in Java? - javaHow to link to java.class file from JSP page? - javaМожет ли кто-нибудь объяснить следующий код схемы? - schemeDisabling / node view and other hidden views in Drupal? - drupalFuse file system problem - cAll Articles