Hi there,
I'm having trouble creating a generic type. Could someone check my
configuration and possibly point me in the right direction?
public interface ICommand<T>
{
void Execute(T commandData);
}
public class SomeCommand : ICommand<SomeCommandData>
{
public SomeCommand()
{
}
public void Execute(SomeCommandData commandData)
{
}
}
Here's my configuration :
<component id="SomeCommand"
service ="MyAssembly.AppController.ICommand`1
[[MyAssembly.AppController.SomeCommandData,
MyAssembly]],MyAssembly"
type="MyAssembly.AppController.SomeCommand`1
[[MyAssembly.AppController.SomeCommandData, MyAssembly]],MyAssembly" /
>
I get a a TypeLoadException for the type 'SomeCommand' when I try and
load the configuration. It states that "the type
MyAssembly.AppController.SomeCommand`1 could not be found in
MyAssembly" .
I can load the type SomeCommand if I remove the generics .
I'm using Castle 2.0.
Thanks,
Ken
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---