Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

open braces  RSS feed

 
spars anu
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator



playerManagementClient.AddPlayerNote(new AddPlayerNoteRequest(new AddPlayerNoteRequestEnvelope

What does this mean?What does this open braces represent?
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The braces are C#'s property initialiser syntax. So you're creating a AddPlayerNoteRequestEnvelope object, and initialising some of its properties (PlayerIx and Note) at the same time.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!