Can we force a c# compiler to run constructor first? -
as c# field initializers run before constructor. there way force compiler run constructor first?
thanks @jonathan, need know, why?
no.
if reason care order, initialize fields in constructor.
caring order of initialization seems code smell.
Comments
Post a Comment