返回 this.AllowChooseAny.Value ?radioSpecific.Checked ? UserManager.CurrentUser.IsClient ?txtSubject.Text:subjectDropDownList.SelectedItem.Text:String.Empty:UserManager.CurrentUser.IsClient?txtSubject.Text:subjectDropDownList.SelectedItem.Text;
或以不太复杂的形式:
return any ?
    specified ?
       isClient ? textbox : dropdown :
       empty :
    isClient ? textbox : dropdown;
或以示意图形式:
                     |
                    any
              /            \
      specified             isClient
      /        \           /        \
  isClient    empty     textbox  dropdown
  /       \
textbox  dropdown
显然我在两个不同的级别上有一个重复的块。是否可以优化此代码以将它们拆分为一个?或类似的东西..