Exemplo n.º 1
0
        public void TestCrunchFileName()
        {
            var sw = new Stopwatch();

            sw.Start();
            for (var i = 0; i < 9999; i++)
            {
                var s = PathAndFile.CrunchFileName("this is agreat TitleFormat!");
            }
            sw.Stop();
            Web.Write("Execution time: " + sw.ElapsedMilliseconds + "ms");
        }
Exemplo n.º 2
0
 public override string GetUrl()
 {
     //return base.GetUrl();
     return(Web.ResolveUrl("~/ArticlePage/" + PageID + "/" + PathAndFile.CrunchFileName(GetName()) + "#Article" + ID));
 }