2
votes

How do i setup the configuration in XML (for Windsor Castle) for the following class?

public class Repository<T> : IRepository<T> where T : class
{
....
}

I know how to do it in code but i must use XML file

Thanks in advance

1

1 Answers

2
votes
<component id="repository"
   service="MyNamespace.IRepository`1, MyAssembly"
   type="MyNamespace.Repository`1, MyAssembly"/>