C# Class SalarDbCodeGenerator.DbProject.Common

Afficher le fichier Open project: GitOffice/SalarDbCodeGenerator

Méthodes publiques

Méthode 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 méthode

public static AppVarPathMakeAbsolute ( string path ) : string
path string
Résultat string

AppVarPathMakeRelative() public static méthode

public static AppVarPathMakeRelative ( string path ) : string
path string
Résultat string

GetExceptionTechMessage() public static méthode

public static GetExceptionTechMessage ( Exception ex, string seperator = null ) : string
ex System.Exception
seperator string
Résultat string

PathMakeAbsoluteTo() public static méthode

public static PathMakeAbsoluteTo ( string path, string relativeTo, string relativeMarkReplacement ) : string
path string
relativeTo string
relativeMarkReplacement string
Résultat string

PathMakeRelativeTo() public static méthode

public static PathMakeRelativeTo ( string path, string relativeTo, string relativeMarkReplacement ) : string
path string
relativeTo string
relativeMarkReplacement string
Résultat string

ProjectPathMakeAbsolute() public static méthode

public static ProjectPathMakeAbsolute ( string path, string projectPath ) : string
path string
projectPath string
Résultat string

ProjectPathMakeRelative() public static méthode

public static ProjectPathMakeRelative ( string path, string projectPath ) : string
path string
projectPath string
Résultat string

ReplaceEx() public static méthode

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
Résultat string

ReplaceExIgnoreCase() public static méthode

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

TryConvertBoolean() public static méthode

public static TryConvertBoolean ( object b, bool defValue ) : bool
b object
defValue bool
Résultat bool

TryConvertInt32() public static méthode

public static TryConvertInt32 ( string number, int defValue ) : int
number string
defValue int
Résultat int

TryConvertInt64() public static méthode

public static TryConvertInt64 ( string number, long defValue ) : long
number string
defValue long
Résultat long