C# 클래스 Prebuild.Core.Utilities.Helper

파일 보기 프로젝트 열기: aurora-sim/Aurora-Libs

공개 메소드들

메소드 설명
AssemblyFullName ( string assemblyName, ProjectType projectType ) : string

AttributeValue ( XmlNode node, string attr, string def ) : string

Attributes the value.

CheckType ( Type typeToCheck, Type attr, Type inter ) : object

Checks the type.

DeleteIfExists ( string file ) : bool

Deletes if exists.

EndPath ( string path ) : string

Ends the path.

EndPath ( string path, char separatorCharacter ) : string

Ends the path.

EnumAttributeValue ( XmlNode node, string attr, Type enumType, object def ) : object

Enums the attribute value.

FindGroups ( string target, string beforeGroup, string afterGroup, bool includeDelimitersInSubstrings ) : StringCollection

Gets a collection of StringLocationPair objects that represent the matches

InterpolateForEnvironmentVariables ( string target ) : string

Replaces ${var} statements in a string with the corresonding environment variable with name var

InterpolateForVariables ( string target, StringLookup lookup ) : string

Replaces ${var} statements in a string with the corresonding values as detirmined by the lookup delegate

MakeFilePath ( string path, string name ) : string

Makes the file path.

MakeFilePath ( string path, string name, string ext ) : string

Makes the file path.

MakePathRelativeTo ( string startPath, string endPath ) : string

Makes a relative path

MakeReferencePath ( string path ) : string

NormalizePath ( string path ) : string

Normalizes the path.

NormalizePath ( string path, char separatorCharacter ) : string

Normalizes the path.

ParseBoolean ( XmlNode node, string attr, bool defaultValue ) : bool

Parses the boolean.

ReplaceGroups ( string target, string beforeGroup, string afterGroup, StringLookup lookup ) : string

Replaces the groups.

ResolvePath ( string path ) : string

Resolves the path.

SetCurrentDir ( string path ) : void

Sets the current dir.

TranslateValue ( Type translateType, string translationItem ) : object

Translates the value.

비공개 메소드들

메소드 설명
Helper ( ) : System

Initializes the Helper class.

메소드 상세

AssemblyFullName() 공개 정적인 메소드

public static AssemblyFullName ( string assemblyName, ProjectType projectType ) : string
assemblyName string
projectType ProjectType
리턴 string

AttributeValue() 공개 정적인 메소드

Attributes the value.
public static AttributeValue ( XmlNode node, string attr, string def ) : string
node System.Xml.XmlNode The node.
attr string The attr.
def string The def.
리턴 string

CheckType() 공개 정적인 메소드

Checks the type.
public static CheckType ( Type typeToCheck, Type attr, Type inter ) : object
typeToCheck System.Type The type to check.
attr System.Type The attr.
inter System.Type The inter.
리턴 object

DeleteIfExists() 공개 정적인 메소드

Deletes if exists.
public static DeleteIfExists ( string file ) : bool
file string The file.
리턴 bool

EndPath() 공개 정적인 메소드

Ends the path.
public static EndPath ( string path ) : string
path string The path.
리턴 string

EndPath() 공개 정적인 메소드

Ends the path.
public static EndPath ( string path, char separatorCharacter ) : string
path string The path.
separatorCharacter char The separator character.
리턴 string

EnumAttributeValue() 공개 정적인 메소드

Enums the attribute value.
public static EnumAttributeValue ( XmlNode node, string attr, Type enumType, object def ) : object
node System.Xml.XmlNode The node.
attr string The attr.
enumType System.Type Type of the enum.
def object The def.
리턴 object

FindGroups() 공개 정적인 메소드

Gets a collection of StringLocationPair objects that represent the matches
public static FindGroups ( string target, string beforeGroup, string afterGroup, bool includeDelimitersInSubstrings ) : StringCollection
target string The target.
beforeGroup string The before group.
afterGroup string The after group.
includeDelimitersInSubstrings bool if set to true [include delimiters in substrings].
리턴 System.Collections.Specialized.StringCollection

InterpolateForEnvironmentVariables() 공개 정적인 메소드

Replaces ${var} statements in a string with the corresonding environment variable with name var
public static InterpolateForEnvironmentVariables ( string target ) : string
target string
리턴 string

InterpolateForVariables() 공개 정적인 메소드

Replaces ${var} statements in a string with the corresonding values as detirmined by the lookup delegate
public static InterpolateForVariables ( string target, StringLookup lookup ) : string
target string The target.
lookup StringLookup The lookup.
리턴 string

MakeFilePath() 공개 정적인 메소드

Makes the file path.
public static MakeFilePath ( string path, string name ) : string
path string The path.
name string The name.
리턴 string

MakeFilePath() 공개 정적인 메소드

Makes the file path.
public static MakeFilePath ( string path, string name, string ext ) : string
path string The path.
name string The name.
ext string The ext.
리턴 string

MakePathRelativeTo() 공개 정적인 메소드

Makes a relative path
public static MakePathRelativeTo ( string startPath, string endPath ) : string
startPath string Path to start from
endPath string Path to end at
리턴 string

MakeReferencePath() 공개 정적인 메소드

public static MakeReferencePath ( string path ) : string
path string
리턴 string

NormalizePath() 공개 정적인 메소드

Normalizes the path.
public static NormalizePath ( string path ) : string
path string The path.
리턴 string

NormalizePath() 공개 정적인 메소드

Normalizes the path.
public static NormalizePath ( string path, char separatorCharacter ) : string
path string The path.
separatorCharacter char The separator character.
리턴 string

ParseBoolean() 공개 정적인 메소드

Parses the boolean.
public static ParseBoolean ( XmlNode node, string attr, bool defaultValue ) : bool
node System.Xml.XmlNode The node.
attr string The attr.
defaultValue bool if set to true [default value].
리턴 bool

ReplaceGroups() 공개 정적인 메소드

Replaces the groups.
public static ReplaceGroups ( string target, string beforeGroup, string afterGroup, StringLookup lookup ) : string
target string The target.
beforeGroup string The before group.
afterGroup string The after group.
lookup StringLookup The lookup.
리턴 string

ResolvePath() 공개 정적인 메소드

Resolves the path.
public static ResolvePath ( string path ) : string
path string The path.
리턴 string

SetCurrentDir() 공개 정적인 메소드

Sets the current dir.
public static SetCurrentDir ( string path ) : void
path string The path.
리턴 void

TranslateValue() 공개 정적인 메소드

Translates the value.
public static TranslateValue ( Type translateType, string translationItem ) : object
translateType System.Type Type of the translate.
translationItem string The translation item.
리턴 object