C# Class MiguelRa.Util.Util

Afficher le fichier Open project: gengo/spGengo

Méthodes publiques

Méthode Description
FileCopyFilesBetweenDirectories ( string directoryFrom, string directoryTo, bool recursive, bool overwrite ) : bool
FileLoadFileAsText ( string filename ) : string
FileSaveFileText ( string text, string filename ) : bool
StringFirstCharToUpper ( string text ) : string
StringIsNumber ( string value ) : bool
StringRemoveFirstAppearance ( string stringContainingAppearances, string substringToRemove ) : string
StringReplaceMultiple ( string text, string oldStrings, string newStrings ) : string
UnicodeToHTML ( string unicodeText ) : string

Converts a Unicode string to a HTML encoded string. HTML encoded string displays correctly in web browsers.

XmlGetRepeatedTagsFromXml ( XmlDocument xml ) : XmlNodeList>.Dictionary
XmlGetTagNamesFromXml ( XmlNode xml ) : List
XmlNodeIsCompound ( XmlNode node ) : bool
timestamp ( ) : string

Method Details

FileCopyFilesBetweenDirectories() public static méthode

public static FileCopyFilesBetweenDirectories ( string directoryFrom, string directoryTo, bool recursive, bool overwrite ) : bool
directoryFrom string
directoryTo string
recursive bool
overwrite bool
Résultat bool

FileLoadFileAsText() public static méthode

public static FileLoadFileAsText ( string filename ) : string
filename string
Résultat string

FileSaveFileText() public static méthode

public static FileSaveFileText ( string text, string filename ) : bool
text string
filename string
Résultat bool

StringFirstCharToUpper() public static méthode

public static StringFirstCharToUpper ( string text ) : string
text string
Résultat string

StringIsNumber() public static méthode

public static StringIsNumber ( string value ) : bool
value string
Résultat bool

StringRemoveFirstAppearance() public static méthode

public static StringRemoveFirstAppearance ( string stringContainingAppearances, string substringToRemove ) : string
stringContainingAppearances string
substringToRemove string
Résultat string

StringReplaceMultiple() public static méthode

public static StringReplaceMultiple ( string text, string oldStrings, string newStrings ) : string
text string
oldStrings string
newStrings string
Résultat string

UnicodeToHTML() public static méthode

Converts a Unicode string to a HTML encoded string. HTML encoded string displays correctly in web browsers.
public static UnicodeToHTML ( string unicodeText ) : string
unicodeText string Unicode string (e.g: 'aplicaci\u00f3n')
Résultat string

XmlGetRepeatedTagsFromXml() public static méthode

public static XmlGetRepeatedTagsFromXml ( XmlDocument xml ) : XmlNodeList>.Dictionary
xml System.Xml.XmlDocument
Résultat XmlNodeList>.Dictionary

XmlGetTagNamesFromXml() public static méthode

public static XmlGetTagNamesFromXml ( XmlNode xml ) : List
xml System.Xml.XmlNode
Résultat List

XmlNodeIsCompound() public static méthode

public static XmlNodeIsCompound ( XmlNode node ) : bool
node System.Xml.XmlNode
Résultat bool

timestamp() public static méthode

public static timestamp ( ) : string
Résultat string