예제 #1
0
        /// <summary>
        /// Formats the table for output
        /// </summary>
        /// <returns>The table as a string</returns>
        public override string ToString()
        {
            if (_colsShown.Count == 0)
            {
                throw new EmptyTableException(this.GetType());
            }

            return(OutputBuilder <T> .BuildOutput(this, TableStyle));
        }
예제 #2
0
파일: Table.cs 프로젝트: Ravikc/contabs
 public override string ToString()
 {
     return(OutputBuilder <T> .BuildOutput(this, TableStyle));
 }
예제 #3
0
        public static string BuildOutput(Table <T> t, Style s)
        {
            var instance = new OutputBuilder <T>(t, s);

            return(instance.sb.ToString());
        }