0
public class MyClass{

public MyClass(System.Type type)
{
// do whatever
}
}

How do I pass SomeOtherClass type in spring.net DI? I couldn't get through that in documentation nor my implementation? tried to do below but have an exception.. :

...
  <constructor-arg index="0" value="SomeOtherClass" type="System.Type"/> 
..
user1025852
  • 2,684
  • 11
  • 36
  • 58

1 Answers1

2
<constructor-arg index="0" value="MyNamespace.SomeOtherClass, MyAssembly" /> 
bbaia
  • 1,193
  • 7
  • 8