예제 #1
0
파일: Meme.cs 프로젝트: kraidiky/TribeSim
            public string Data()
            {
                var sb = StringBuilderPool.Get();

                sb.Append(memeId);
                sb.Append(',').Append(affectedFeature.GetAcronym());
                sb.Append(',').Append(efficiency.ToString(CultureInfo.InvariantCulture));
                sb.Append(',').Append(price.ToString(CultureInfo.InvariantCulture));
                sb.Append(',').Append(complexityCoefficient.ToString(CultureInfo.InvariantCulture));
                sb.Append(',').Append(yearInvented);
                sb.Append(',').Append(currentPopulation);
                sb.Append(',').Append(maxPopulation);
                sb.Append(',').Append(maxPopulationYear);
                sb.Append(',').Append(totalPopulation);
                sb.Append(',').Append(goesAwayYear);
                sb.Append('\n');
                return(sb.Release());
            }
예제 #2
0
파일: Meme.cs 프로젝트: kraidiky/TribeSim
            public string Header()
            {
                var sb = StringBuilderPool.Get();

                sb.Append(nameof(memeId));
                sb.Append(',').Append(nameof(affectedFeature));
                sb.Append(',').Append(nameof(efficiency));
                sb.Append(',').Append(nameof(price));
                sb.Append(',').Append(nameof(complexityCoefficient));
                sb.Append(',').Append(nameof(yearInvented));
                sb.Append(',').Append(nameof(currentPopulation));
                sb.Append(',').Append(nameof(maxPopulation));
                sb.Append(',').Append(nameof(maxPopulationYear));
                sb.Append(',').Append(nameof(totalPopulation));
                sb.Append(',').Append(nameof(goesAwayYear));
                sb.Append('\n');
                return(sb.Release());
            }