Esempio n. 1
0
        /// <summary>
        /// Method to sort a Text
        /// </summary>
        /// <param name="textToSort">piece of text</param>
        /// <param name="sortMode">sort criteria <see cref="eSortMode"/></param>
        /// <returns>Piece of text sorted</returns>
        public string Sort(string textToSort, eSortMode sortMode)
        {
            ITextSorter sorter = DIService.ContainerService.ResolveKeyed <ITextSorter>(sortMode);

            return(sorter.Sort(textToSort));
        }
 /// <summary>
 /// Method to sort a Text
 /// </summary>
 /// <param name="textToSort">piece of text</param>
 /// <param name="sorter">sorter of text</param>
 /// <returns>Piece of text sorted</returns>
 public string Sort(string textToSort, ITextSorter sorter)
 {
     return(sorter.Sort(textToSort));
 }