私は ASP MVC4 を理解しようとしていますが、.cshtml ファイル内の @{...} 内でこれに遭遇しました。
@Html.DropDownListFor(x => x.WillAttend, new[] {
new SelectListItem() {
Text = "Yes, I'll be there",
Value = bool.TrueString},
new SelectListItem() {
Text = "No, I can't come",
Value = bool.FalseString}
}, "Choose an option")
Q1) これはどのようなものですか:new[]{...}
Q2) カミソリの場合、中括弧内のものは単なる C# コードであると言っているのは正しいですか。
ありがとう。