ToString() public method

public ToString ( ) : string
return string
コード例 #1
0
        public override string ToString()
        {
            var builder = new StringBuilder();

            builder.AppendFormat("\nEffort: {0}\n", Effort != null ? Effort.ToString() : string.Empty);
            builder.AppendFormat("Segment: {0}\n", Segment != null ? Segment.ToString() : string.Empty);

            return(builder.ToString());
        }
コード例 #2
0
ファイル: LeaderV2.cs プロジェクト: hnaess/Stravan
        public override string ToString()
        {
            var builder = new StringBuilder();

            builder.AppendFormat("\nRank: {0}\n", Rank);
            builder.AppendFormat("Effort: {0}\n", Effort != null ? Effort.ToString() : string.Empty);
            builder.AppendFormat("Athlete: {0}\n", Athlete != null ? Athlete.ToString() : string.Empty);

            return(builder.ToString());
        }