clairernovotny / ninject

the ninja of .net dependency injectors
http://ninject.org/
Other
26 stars 5 forks source link

Avoid ArgumentNullException under WinRT #1

Closed andycb closed 11 years ago

andycb commented 11 years ago

The WinRT implementation of GetPropertyFromDeclaredType() will return null is no suitable property is found, or the property is static, if unchecked this causes an unhandled ArgumentNullException in ShouldInject(). This is particularly the event if binding a singleton type with a static Instance property.

clairernovotny commented 11 years ago

This should be fixed and in the latest Portable.Ninject NuGet package