Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

open braces

 
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: 4567
8
  • 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