P
Peter van der Goes
When a struct is created in C# and a parameterized constructor defined, the
IntelliSense editor shows only the syntax for the parameterized constructor
in tooltips, but not for the default constructor which appears to still
exist. If this is not designed behavior, is it a bug or am I misusing my
struct?
If it is by design, could you please explain? I realize the behavior of a
struct, as regards constructors, is different from that of classes in that a
class will not retain an automatically defined default constructor if a
parameterized constructor is defined by the programmer. The tooltip for
struct constructor options seems to be following the rules for a class?
I'm a bit confused, and any help getting straight would be much appreciated!
IntelliSense editor shows only the syntax for the parameterized constructor
in tooltips, but not for the default constructor which appears to still
exist. If this is not designed behavior, is it a bug or am I misusing my
struct?
If it is by design, could you please explain? I realize the behavior of a
struct, as regards constructors, is different from that of classes in that a
class will not retain an automatically defined default constructor if a
parameterized constructor is defined by the programmer. The tooltip for
struct constructor options seems to be following the rules for a class?
I'm a bit confused, and any help getting straight would be much appreciated!