29 people like it.
Like the snippet!
This is used for building things with reflection at runtime. As ConstructorInfo arguments require typed collections, it is necessary when parsing to reflected records to first build up contents and then afterward convert the collected obj[] to a 'a[]. This is finally cast back to obj so it can be used as a ConstructorInfo argument.
1: 2: 3: 4: 5: 6: 7: 8: |
|
Link: | http://fssnip.net/1L |
Posted: | 13 years ago |
Author: | Rick Minerich |
Tags: | reflection , collections |