C# 클래스 formulate.core.Extensions.StringExtensions

Extension methods for strings.
파일 보기 프로젝트 열기: rhythmagency/formulate

공개 메소드들

메소드 설명
ConvertFieldTypeToAngularType ( this fieldType ) : string

Converts a field type (e.g., "TextField") to an Angular-friendly type (e.g., "text").

ConvertValidationTypeToAngularType ( this validationType ) : string

Converts a validation type (e.g., "ValidationRegex") to an Angular-friendly type (e.g., "regex").

Fallback ( this source, string fallback ) : string

Uses a fallback string if the specified source string is null or whitespace.

메소드 상세

ConvertFieldTypeToAngularType() 공개 정적인 메소드

Converts a field type (e.g., "TextField") to an Angular-friendly type (e.g., "text").
public static ConvertFieldTypeToAngularType ( this fieldType ) : string
fieldType this /// The field type (e.g., "TextField"). ///
리턴 string

ConvertValidationTypeToAngularType() 공개 정적인 메소드

Converts a validation type (e.g., "ValidationRegex") to an Angular-friendly type (e.g., "regex").
public static ConvertValidationTypeToAngularType ( this validationType ) : string
validationType this /// The validation type (e.g., "ValidationRegex"). ///
리턴 string

Fallback() 공개 정적인 메소드

Uses a fallback string if the specified source string is null or whitespace.
public static Fallback ( this source, string fallback ) : string
source this The source string.
fallback string The fallback string.
리턴 string