David Abrahams a écrit :
Edward Diener
writes: Most .Net objects aren't half-baked objects to use, but they are objects which are created with a default constructor, which gives people the idea that they are not ready to use. They rely quite a bit on properties being set in order to use, and those properties are set via the design-time interface in Visual Studio, which then injects code in the default constructor to set the properties. So while it looks like these objects are not ready to use, they really are.
Edward, I know little of .Net, so I'd appreciate it if you could help me out here. When you say "design-time interface," what are you talking about? Some kind of GUI?
I think so.
Are you saying that this GUI modifies the compiled binary, leaving no textual trace of member initialization values in the original source for the class?
The GUI modifies the source code. -- Loïc