AjaxControlToolkit.LinkStaticResources.Program.LinkStyle C# (CSharp) Method

LinkStyle() static private method

static private LinkStyle ( string prefix, string path ) : void
prefix string
path string
return void
        static void LinkStyle(string prefix, string path)
        {
            var fileName = Path.GetFileName(path);

            switch(fileName) {
                case "Backgrounds.css":
                case "Backgrounds.min.css":
                    return;

                case "Backgrounds_static.css":
                    fileName = "Backgrounds.css";
                    break;

                case "Backgrounds_static.min.css":
                    fileName = "Backgrounds.min.css";
                    break;
            }

            CreateHardLink(path, Path.Combine(prefix, fileName));
        }