C# Class SalarDbCodeGenerator.DbProject.Common

显示文件 Open project: GitOffice/SalarDbCodeGenerator

Public Methods

Method Description
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

Method Details

AppVarPathMakeAbsolute() public static method

public static AppVarPathMakeAbsolute ( string path ) : string
path string
return string

AppVarPathMakeRelative() public static method

public static AppVarPathMakeRelative ( string path ) : string
path string
return string

GetExceptionTechMessage() public static method

public static GetExceptionTechMessage ( Exception ex, string seperator = null ) : string
ex System.Exception
seperator string
return string

PathMakeAbsoluteTo() public static method

public static PathMakeAbsoluteTo ( string path, string relativeTo, string relativeMarkReplacement ) : string
path string
relativeTo string
relativeMarkReplacement string
return string

PathMakeRelativeTo() public static method

public static PathMakeRelativeTo ( string path, string relativeTo, string relativeMarkReplacement ) : string
path string
relativeTo string
relativeMarkReplacement string
return string

ProjectPathMakeAbsolute() public static method

public static ProjectPathMakeAbsolute ( string path, string projectPath ) : string
path string
projectPath string
return string

ProjectPathMakeRelative() public static method

public static ProjectPathMakeRelative ( string path, string projectPath ) : string
path string
projectPath string
return string

ReplaceEx() public static method

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
return string

ReplaceExIgnoreCase() public static method

Implements fast string replacing algorithm for CS
public static ReplaceExIgnoreCase ( string original, string pattern, string replacement ) : string
original string
pattern string
replacement string
return string

TryConvertBoolean() public static method

public static TryConvertBoolean ( object b, bool defValue ) : bool
b object
defValue bool
return bool

TryConvertInt32() public static method

public static TryConvertInt32 ( string number, int defValue ) : int
number string
defValue int
return int

TryConvertInt64() public static method

public static TryConvertInt64 ( string number, long defValue ) : long
number string
defValue long
return long