Answer the question
In order to leave comments, you need to log in
Why does the object refer to null after the constructor is called?
There is a class
...
protected class InitialValues
{
//тут только свойства
}
...
private InitialValues initialValues;
...
initialValues = new InitialValues();
Answer the question
In order to leave comments, you need to log in
Show where you call Initialize() from, what class you are instantiating (parent, child, etc.), whether the successor overrides Initialize...
You may have overridden Initialize in the child, you call it, and therefore initialValues remains null.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question