Lazycoder

22Aug/051

gah, what the hell is this line doing?

Kids, don’t try this at home. This is a sick line.

conn = tr != null ? tr.Connection : conn != null ? conn : stmt.SessionBroker.Provider.GetConnection();

  • Ivan

    The connection (conn) is equal to tr.Connection if tr is not null, if it is, and conn is not null, use conn, otherwise get the connection from stmt.SessionBroker.Provider.GetConnection()

    Did I get that right? ;)