This project is read-only.



There is currently a method for retrieving a particular constructor for a type when the parameter types are known such as:
Type.GetConstructor(Type[] types)
I would like to see two things implemented. First, Type.GetConstructors() should return ConstructorInfo for all constructors for the type. Second, ConstructorInfo does not currently implement the "GetParameters" method but it would be nice if it did.
I'd like to create a (very) simple dependency injection tool for Micro framework, but this is extremely difficult to do without these two minor additions to the framework. If I was able to resolve all the constructors for a type, and request the parameters types for each constructor, I would be able to build such a tool.


JanKucera wrote Nov 25, 2011 at 3:27 PM

Agree. And ContructorInfo.GetParameters would get added with as it derives from MethodBase.

jeffdoolittle wrote Nov 25, 2011 at 7:01 PM

Thanks Jan, spread the word. I'd really like to see this get done. Please vote up people!

wrote Dec 12, 2011 at 3:41 PM

wrote Jan 24, 2012 at 8:57 PM

wrote Jan 24, 2012 at 9:11 PM

sevagd wrote Feb 8, 2012 at 8:54 PM

GetParameters would be useful. To overcome this limitation we implemented a simple setter/field based dependency injection container for a current project.

wrote Oct 2, 2012 at 1:23 PM

wrote Jan 9, 2013 at 4:41 PM

jeffdoolittle wrote Jan 9, 2013 at 4:42 PM

I am curious if any progress has been made toward getting this issue resolved.

lorenzte wrote Jan 9, 2013 at 6:21 PM

None so far, we will consider for next version.

wrote Jan 30, 2013 at 9:27 AM

wrote Feb 3, 2013 at 11:08 AM

wrote Feb 7, 2013 at 10:16 AM

wrote Feb 22, 2013 at 1:45 AM

wrote Sep 24, 2013 at 1:26 AM