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.Co mmons.User and it has 2 methods in it
public abstract getPropertiesHa sh (string userName) and
public abstract getPropertiesXm l (string userName) adn the class name
is called
CPUser.cs
I have a project that contains 2 implementation classes, their
namespace is
CIG.Intranet.Sh arePoint.User this project references the abstact class
and inherits from it and they both contain the methods
public override Hashtable getPropertiesHa sh(string userName) and
public override XmlNode getPropertiesXm l(string userName) the class
names are
Sharepoint2003U ser.cs and
Sharepoint2001U ser.cs and the headers are as follows
public class SharePoint2001U ser : CPUser
public class SharePoint2003U ser : 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 SharePoint2003U ser();
Console.WriteLi ne(user.getProp ertiesXml("cigd ev\\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
MissingMethodEx ception and it says it can't find the getPropertiesXm l
method, if i try and use the getPropertiesHa sh method i also get the
MissingMethodEx ception... 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!!!!!