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()); }
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()); }