I’d like to write a class which extends the functionality of the MembershipProvider and MembershipUser. But my knowledge in this area is woefully lacking.
My cs file looks something like this:
namespace Mech
{
public class Mechs : MembershipProvider
{
private static Database dbConn = DatabaseFactory.CreateDatabase("main");
public override MembershipUser GetUser(string username, bool userIsOnline)
{
}
}
}
At this point it’s complaining about all the abstract members not being implemented. I don’t really need to change every single member of membershipProvider, just a handful. So what would be the correct way of doing this?
You don’t necessarily have to change everythingthing . You can just leave them as it after implementation.
Click on MembershipProvide , Wait for Intellisences to show you the hint as in below picture:

(Alternatively press Alt+Shift+F10)
Now that’s it , you will have your class implementing all the abstract methods and proporties.
So what will happen when you will try to access Field1: