J
julien
Hello,
I have 2 classes in the same namespace:
using System;
using System.Collections;
public class PluginInformation
{
[...]
public PluginInformation(string filename)
{
// constructor
}
}
---------------------
using System;
public class PluginStructure: PluginInformation
{
[...]
public PluginStructure(string filename)
{
new PluginInformation(filename);
}
public PluginStructure()
{
//new PluginInformation();
}
}
When I compile these 2 classes, I got the error:
e:\code\PluginStructure.cs(44,10): error CS1501: No overload for method
'PluginInformation' takes '0' arguments
e:\code\PluginInformation.cs(17,10): (Location of symbol related to
previous error)
I tried to modify the constructors in PluginStructure (the first one
only, the second one only). But the error message is always the same (on
the line number changes), and it doesn't make sense for me:
PluginInformation doesn't have a constructor with 0 argument.
Any idea?
Thanks
Julien
I have 2 classes in the same namespace:
using System;
using System.Collections;
public class PluginInformation
{
[...]
public PluginInformation(string filename)
{
// constructor
}
}
---------------------
using System;
public class PluginStructure: PluginInformation
{
[...]
public PluginStructure(string filename)
{
new PluginInformation(filename);
}
public PluginStructure()
{
//new PluginInformation();
}
}
When I compile these 2 classes, I got the error:
e:\code\PluginStructure.cs(44,10): error CS1501: No overload for method
'PluginInformation' takes '0' arguments
e:\code\PluginInformation.cs(17,10): (Location of symbol related to
previous error)
I tried to modify the constructors in PluginStructure (the first one
only, the second one only). But the error message is always the same (on
the line number changes), and it doesn't make sense for me:
PluginInformation doesn't have a constructor with 0 argument.
Any idea?
Thanks
Julien