C# Класс Westwind.RazorHosting.Utilities

Helper class that provides a few simple utilitity functions to the project
Показать файл Открыть проект

Открытые методы

Метод Описание
GetRelativePath ( string fullPath, string basePath ) : string

Returns a relative path based on a base path. Examples: <<ul>> <<li>> filename.txt <<li>> subDir\filename.txt <<li>> ..\filename.txt <<li>> ..\..\filename.txt <</ul>> Class Utilities

HtmlEncode ( object value ) : string

HtmlEncodes any value by calling ToString() first

HtmlEncode ( string text ) : string

HTML-encodes a string and returns the encoded string.

Описание методов

GetRelativePath() публичный статический Метод

Returns a relative path based on a base path. Examples: <<ul>> <<li>> filename.txt <<li>> subDir\filename.txt <<li>> ..\filename.txt <<li>> ..\..\filename.txt <</ul>> Class Utilities
public static GetRelativePath ( string fullPath, string basePath ) : string
fullPath string /// The full path from which to generate a relative path ///
basePath string /// The base path based on which the relative path is based on ///
Результат string

HtmlEncode() публичный статический Метод

HtmlEncodes any value by calling ToString() first
public static HtmlEncode ( object value ) : string
value object
Результат string

HtmlEncode() публичный статический Метод

HTML-encodes a string and returns the encoded string.
public static HtmlEncode ( string text ) : string
text string The text string to encode.
Результат string