Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
CsvHelper を使用して、CSV ファイルから動的オブジェクトを作成しています。
私が抱えている問題は、次のように、名前に不正な文字が含まれることがあることです。
とにかく、次のようなステートメントを実行できることはありますか?
if (record.Towm/Area == "foo") ...
動的であるため、リフレクションを使用してループし、文字列比較で名前を確認することはできないと思います。
名前付き配列または他の方法でアクセスできる方法はありますか?