ClrPlus.Scripting.MsBuild.Packaging.PackageScript.NormalizeOuptutKey C# (CSharp) Method

NormalizeOuptutKey() private method

private NormalizeOuptutKey ( string key ) : string
key string
return string
        private string NormalizeOuptutKey(string key)
        {
            if (string.IsNullOrEmpty(key)) {
                return "default";
            }
            return key.Replace('/', ',').Replace('\\', ',').Replace('&', ',').SplitToList(',', ' ').OrderBy(each => each).Aggregate((current, each) => current + ',' + each).Trim(',');
        }