Question

I am building an object through castle windsor and my constructor accepts an argument of a custom type. How do I pass it to my object.

public class ArgumentClass
{
   int value1;
   string value2;
}

public interface IInterface
{
}

public class CClass : IInterface
{
   public CClass(ArgumentClass arg) { }
}

All my configuration is defined in the XML file and I want to define the argument in the XML as well. So no programming please!

Was it helpful?

Solution 3

I don't know what I was thinking when I posted this question. Actually I was looking to pass a list of objects to a constructor. I ended up doing it like this:

${id1} ${id2} ${id3} ${id4}

OTHER TIPS

have you looked at the documentation?

I think Hash ask for one of those usage hint

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top