NameValueCollection
where、join、groupbyなどのLINQクエリ演算子にアクセスできるようにするにはどうすればよいですか?
私は以下を試しました:
private NameValueCollection RequestFields()
{
NameValueCollection nvc = new NameValueCollection()
{
{"emailOption: blah Blah", "true"},
{"emailOption: blah Blah2", "false"},
{"nothing", "false"},
{"nothinger", "true"}
};
return nvc;
}
public void GetSelectedEmail()
{
NameValueCollection nvc = RequestFields();
IQueryable queryable = nvc.AsQueryable();
}
しかし、ソースがIEnumerable<>ではないことを通知するArgumentExceptionが発生しました。