public class JdaUser : mmUser { public string InitVecField;Then I changed my Factory class to override the CreateUserObject() method so that it returns my JdaUser object.
public override mmUser CreateUserObject() { return new JdaUser(); }I have tried instantiating my JdaUser object with CreateUserObject() 2 different ways and they both give me compile-time errors.
JdaUser User = mmAppBase.Factory.CreateUserObject();2. If I try to define my variable as the old mmUser, I get a compile-time error when I try to use my new member: "'OakLeaf.MM.Main.Security.mmUser' does not contain a definition for 'InitVecField'"
mmUser User = mmAppBase.Factory.CreateUserObject(); Console.WriteLine(User.InitVecField);If I comment out the Console.WriteLine() line above, it will compile and I can step through the code and watch it actually create a JdaUser object. Does anyone know how I can get the compiler to realize that the JdaUser object will be created so my InitVecField member should be available to me???