public void logSentence() { if (_wholeSentence.Length > 0) { var logging = new Logging(); logging.log("sentences", _wholeSentence); } }