What’s the longest constructor you’ve written in C#

  • 3
    Does it even count if it is just called by the dependency injection resolution?
  • 1
    I'll just answer with java, as the constructors seem literally the same.

    Was the constructor of my Gmail base class in OnyxLib.
    Had constructor parameters for:
    String user;
    String password;
    String recipient;
    String host;
    String subject;
    String text;
    int port;
    boolean isHtml;
  • 0
    Six lines at least six lines; it created an insert/update statement for SQL. Table had 20 or so fields.
Add Comment