esp submitted these extension methods

  • Resize

    takes a byte[], and ints for width/height. returns a byte[] for the new image. keeps a static copy of previously provided sizes to reduce GC activity.
    C# System.Image esp
  • ToUrlString

    takes a string, replacing special characters and spaces with - (one dash per one or many contiguous special charachters or spaces). makes lower-case and trims. good for seo.
    C# System.String esp

 

;