C# Класс SalarDbCodeGenerator.DbProject.Common

Показать файл Открыть проект

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

Метод Описание
AppVarPathMakeAbsolute ( string path ) : string
AppVarPathMakeRelative ( string path ) : string
GetExceptionTechMessage ( Exception ex, string seperator = null ) : string
PathMakeAbsoluteTo ( string path, string relativeTo, string relativeMarkReplacement ) : string
PathMakeRelativeTo ( string path, string relativeTo, string relativeMarkReplacement ) : string
ProjectPathMakeAbsolute ( string path, string projectPath ) : string
ProjectPathMakeRelative ( string path, string projectPath ) : string
ReplaceEx ( string original, string pattern, string replacement, System.StringComparison comparisonType ) : string

Implements fast string replacing algorithm for CS

ReplaceExIgnoreCase ( string original, string pattern, string replacement ) : string

Implements fast string replacing algorithm for CS

TryConvertBoolean ( object b, bool defValue ) : bool
TryConvertInt32 ( string number, int defValue ) : int
TryConvertInt64 ( string number, long defValue ) : long

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

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

public static AppVarPathMakeAbsolute ( string path ) : string
path string
Результат string

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

public static AppVarPathMakeRelative ( string path ) : string
path string
Результат string

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

public static GetExceptionTechMessage ( Exception ex, string seperator = null ) : string
ex System.Exception
seperator string
Результат string

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

public static PathMakeAbsoluteTo ( string path, string relativeTo, string relativeMarkReplacement ) : string
path string
relativeTo string
relativeMarkReplacement string
Результат string

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

public static PathMakeRelativeTo ( string path, string relativeTo, string relativeMarkReplacement ) : string
path string
relativeTo string
relativeMarkReplacement string
Результат string

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

public static ProjectPathMakeAbsolute ( string path, string projectPath ) : string
path string
projectPath string
Результат string

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

public static ProjectPathMakeRelative ( string path, string projectPath ) : string
path string
projectPath string
Результат string

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

Implements fast string replacing algorithm for CS
public static ReplaceEx ( string original, string pattern, string replacement, System.StringComparison comparisonType ) : string
original string
pattern string
replacement string
comparisonType System.StringComparison
Результат string

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

Implements fast string replacing algorithm for CS
public static ReplaceExIgnoreCase ( string original, string pattern, string replacement ) : string
original string
pattern string
replacement string
Результат string

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

public static TryConvertBoolean ( object b, bool defValue ) : bool
b object
defValue bool
Результат bool

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

public static TryConvertInt32 ( string number, int defValue ) : int
number string
defValue int
Результат int

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

public static TryConvertInt64 ( string number, long defValue ) : long
number string
defValue long
Результат long