Why are my member variables null after construction?
I have a simple C# class constructor I’m running through a unit test. There are two members: public class AnObject { private Func<List<string>> function; private SHA256 sha256; and a pair of nested constructors: public AnObject() { new AnObject(InternalFunction); } public AnObject(Func<List<string>> function) { this.function = function; this.sha256 = SHA256.Create(); } the first of which passes… Read More Why are my member variables null after construction?