嘗試處理(內部)KeyValueConfigurationCollection例外情況,當值來自其索引器不存在時,我出現錯誤。 public class ConfigCore
{
public static Configuration config
{
get
{
ExeConfigurationFileMap configFileMa
我有我的實體列表,我使用Select從我的實體獲取一些屬性。我的實體有一個PrimaryContact屬性,這有一個LastName屬性。所以,如果我用這樣它的正常工作 var b = items.Select(s => s[PropertyName]); //Property name is "PrimaryContact" it's fine.
,但如果我使用"PrimaryContact
我努力想辦法解決以下任務。 設置: class Records
{
Cells cells;
}
class Cell
{
string FieldName;
string Value;
}
class Cells : Collection<Cell>
{
public Cell this[string FieldName]