This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Other Languages and the fly likes open braces Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "open braces" Watch "open braces" New topic

open braces

spars anu

Joined: May 26, 2011
Posts: 11

playerManagementClient.AddPlayerNote(new AddPlayerNoteRequest(new AddPlayerNoteRequestEnvelope

What does this mean?What does this open braces represent?
Matthew Brown

Joined: Apr 06, 2010
Posts: 4541

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.
I agree. Here's the link:
subject: open braces
It's not a secret anymore!