C# 클래스 Felinesoft.UmbracoCodeFirst.Extensions.StringHelperExtensions

Convenience methods used when formatting and transforming Umbraco values to valid C# member names.
파일 보기 프로젝트 열기: DanMannMann/UmbracoCodeFirst

공개 메소드들

메소드 설명
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