internal BaseSessionObject(Session session, object ptr) { if (session == null) { throw new ArgumentNullException("session"); } _session = session; if (ptr != null) { Ptr = ptr; } }