E
erin.sebastian
Hello Everyone,
This is my first attempt at coding using an abstract class and i am
getting an error i can't figure out. Here is the back ground.
I have a project that contains an abstract class, it's namespace is
CIG.Intranet.Commons.User and it has 2 methods in it
public abstract getPropertiesHash (string userName) and
public abstract getPropertiesXml (string userName) adn the class name
is called
CPUser.cs
I have a project that contains 2 implementation classes, their
namespace is
CIG.Intranet.SharePoint.User this project references the abstact class
and inherits from it and they both contain the methods
public override Hashtable getPropertiesHash(string userName) and
public override XmlNode getPropertiesXml(string userName) the class
names are
Sharepoint2003User.cs and
Sharepoint2001User.cs and the headers are as follows
public class SharePoint2001User : CPUser
public class SharePoint2003User : CPUser
I have a project that contains a test form, this project references
both the abstract and implementation class and has code to actually
test these classes. the code is as follows
CPUser user;
user = new SharePoint2003User();
Console.WriteLine(user.getPropertiesXml("cigdev\\sharepoint"));
If i have just the first 2 lines in this class and run it everything is
fine, once i add the line that uses the method i get a
MissingMethodException and it says it can't find the getPropertiesXml
method, if i try and use the getPropertiesHash method i also get the
MissingMethodException... i should also note that my intellisence shows
both of these methods.
I tried creating a very simple test app and followed the same procedure
i did as above and it worked fine... i have no idea how to fix this or
what is wrong. can anybody PLEASE help me??
Thanks so much in advance!!!!!
This is my first attempt at coding using an abstract class and i am
getting an error i can't figure out. Here is the back ground.
I have a project that contains an abstract class, it's namespace is
CIG.Intranet.Commons.User and it has 2 methods in it
public abstract getPropertiesHash (string userName) and
public abstract getPropertiesXml (string userName) adn the class name
is called
CPUser.cs
I have a project that contains 2 implementation classes, their
namespace is
CIG.Intranet.SharePoint.User this project references the abstact class
and inherits from it and they both contain the methods
public override Hashtable getPropertiesHash(string userName) and
public override XmlNode getPropertiesXml(string userName) the class
names are
Sharepoint2003User.cs and
Sharepoint2001User.cs and the headers are as follows
public class SharePoint2001User : CPUser
public class SharePoint2003User : CPUser
I have a project that contains a test form, this project references
both the abstract and implementation class and has code to actually
test these classes. the code is as follows
CPUser user;
user = new SharePoint2003User();
Console.WriteLine(user.getPropertiesXml("cigdev\\sharepoint"));
If i have just the first 2 lines in this class and run it everything is
fine, once i add the line that uses the method i get a
MissingMethodException and it says it can't find the getPropertiesXml
method, if i try and use the getPropertiesHash method i also get the
MissingMethodException... i should also note that my intellisence shows
both of these methods.
I tried creating a very simple test app and followed the same procedure
i did as above and it worked fine... i have no idea how to fix this or
what is wrong. can anybody PLEASE help me??
Thanks so much in advance!!!!!