Class Utilities

Helper class that provides a few simple utilitity functions to the project

System.Object
  Westwind.RazorHosting.Utilities
public class Utilities : object

Class Members

MemberDescription

Constructor

GetRelativePath

Returns a relative path based on a base path.

Examples: <

    > <
  • > filename.txt <
  • > subDir\filename.txt <
  • > ..\filename.txt <
  • > ....\filename.txt <
>

public static string GetRelativePath(string fullPath,     string basePath)

HtmlEncode

HTML-encodes a string and returns the encoded string.

public static string HtmlEncode(string text)

public static string HtmlEncode(object value)

Requirements

Namespace: Westwind.RazorHosting
Assembly: westwind.razorhosting.dll

© West Wind Technologies, 2018 • Updated: 06/07/18
Comment or report problem with topic