Reflection in C# is used to retrieve metadata on types at runtime. In other words, you can use reflection to inspect metadata of the types in your program dynamically — you can retrieve information on ...
C#でプログラミングをしていると、通常は emp.Name や emp.Id のように、コンパイル時点でプロパティ名が決まっている状態でコードを書きます。 しかし、汎用的なライブラリを作っている時や、CSV・JSONのマッピング処理を書いている時に、ふとこう思うことは ...
The .NET 4.5 Framework includes some changes to the typical reflection use cases. Most importantly, the Type object has been split into two separate classes: Type and TypeInfo. Find out how and when ...
プログラムを書いていると、コンパイル時には「どのメソッドを呼べばいいか」が決まっていないケースに遭遇することがあります。 テキストファイルに書かれたコマンド("Save", "Load"など)を実行したい プラグインシステムで、外部DLLの中にあるメソッド ...