C# Класс Felinesoft.UmbracoCodeFirst.Extensions.StringHelperExtensions

Convenience methods used when formatting and transforming Umbraco values to valid C# member names.
Показать файл Открыть проект

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

Метод Описание
HyphenToUnderscore ( string input ) : string

Replace hyphen ('-') with underscore ('_')

ParseUrl ( string input, bool toLowerCase = true, bool allowCommas = false ) : string

Function to parse an URL to a better format

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

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

Replace hyphen ('-') with underscore ('_')
public static HyphenToUnderscore ( string input ) : string
input string
Результат string

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

Function to parse an URL to a better format
public static ParseUrl ( string input, bool toLowerCase = true, bool allowCommas = false ) : string
input string The URL that needs to be parsed
toLowerCase bool True to convert the URL to lower case
allowCommas bool True to allow commas in the output
Результат string