private void CheckSession(BaseSessionObject sessionObject) { if (sessionObject.Session != this) { throw new Exception("Property 'Session' must be equal current session"); } }