Bug in MyComponentFactory.CreateInstanceByType *fix in description*

vulpin shared this bug 3 months ago
Reported

The issue is on the first line:

type.IsAssignableFrom(typeof(MyComponentBase))

should be

typeof(MyComponentBase).IsAssignableFrom(type)

It is currently written so only MyComponentBase or IMyComponentBase can pass this check, rather than the intended behavior of enforcing that the type inherit MyComponentBase.

This method is used by:

MyComponentContainerExtension.InitComponents when InstanceType is used in a MyContainerDefinition.DefaultComponent


and MyComponentContainerExtension.TryAddComponent

Replies (1)

photo
1

Hello vulpin,

Thank you for reaching our forum and letting us know about this issue.

We have put it into our internal system.

Kind Regards,

Keen Software House: QA Department

Leave a Comment
 
Attach a file