Hardly.Library.Twitch.ChannelPointManager.GetAboutPoints C# (CSharp) Method

GetAboutPoints() public method

public GetAboutPoints ( ) : string
return string
        public string GetAboutPoints()
        {
            string description = "";

            for(int i = 0; i < units.Length; i++) {
                if(i > 0) {
                    description += " == 1 ";
                    description += units[i].nameSingular;
                }
                if(i < units.Length - 1) {
                    if(i > 0) {
                        description += ", ";
                    }
                    description += ((double)units[i + 1].value / units[i].value).ToStringWithCommaAndDecimals(1);
                    description += " ";
                    description += units[i].namePlural;
                }
            }

            return description;
        }