ACAT.Extensions.Default.FunctionalAgents.LectureManager.LectureManagerMainForm.getLastWord C# (CSharp) Method

getLastWord() private method

Gets the last word in the sentence
private getLastWord ( String sentence ) : String
sentence String input sentence
return String
        private String getLastWord(String sentence)
        {
            String retVal = String.Empty;
            var words = getWords(sentence);
            if (words.Any())
            {
                retVal = words[words.Count() - 1];
            }

            return retVal;
        }