Hi,

I have the following binsor code which will not compile:

coreAssemblies = [Assembly.Load("ncontinuity2.core"), Assembly.Load
("risk.core")]

for coreAsm in coreAssemblies:
  for type in coreAsm:
    if typeof(IController).IsAssignableFrom(type):
      Component(type.Name.ToLower(), type)
    continue if type.Namespace != "ncontinuity2.core.services" and
type.Namespace != "ncontinuity2.core.dataaccess"
    continue if type.GetInterfaces().Length == 0
    continue if type.IsInterface
    interfaceType = type.GetInterfaces()[0]
    component type.FullName, interfaceType, type

I get the following error:

BCE0000: Could not compile configuration! Windsor(50,16): BCE0004:
Boo.Lang.Compiler.CompilerError: Ambiguous reference '.ctor'

Line 50 is this line:

Component(type.Name.ToLower(), type)

Can anyone see the problem?

Thanks

Paul




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Rhino Tools Dev" 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/rhino-tools-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to