PackageManagement.Sdk.Request.FixMeFormat C# (CSharp) Method

FixMeFormat() private static method

private static FixMeFormat ( string formatString, object args ) : string
formatString string
args object
return string
        private static string FixMeFormat(string formatString, object[] args) {
            if (args == null || args.Length == 0) {
                // not really any args, and not really expectng any
                return formatString.Replace('{', '\u00ab').Replace('}', '\u00bb');
            }
            return args.Aggregate(formatString.Replace('{', '\u00ab').Replace('}', '\u00bb'), (current, arg) => current + string.Format(CultureInfo.CurrentCulture, " \u00ab{0}\u00bb", arg));
        }