C# Class Artemis.Engine.Utilities.UriTree.UriUtilities

Afficher le fichier Open project: ArtemisEngine/Artemis-Engine Class Usage Examples

Méthodes publiques

Méthode Description
AllButFirstPart ( string name ) : string

Return everything in a Uri except for the first part of the name.

AllButLastPart ( string name ) : string

Return everything in a Uri except for the last part of the name.

GetFirstPart ( string name ) : string

Get the first part of a Uri name. Example: GetFirstPart("a.b.c") returns "a"

GetLastPart ( string name ) : string

Get the last part of a Uri name. Example: GetLastPart("a.b.c") returns "c"

GetParts ( string name ) : string[]

Get the separate parts of a Uri name. Example: GetParts("a.b.c") returns {"a", "b", "c"}

Method Details

AllButFirstPart() public static méthode

Return everything in a Uri except for the first part of the name.
public static AllButFirstPart ( string name ) : string
name string
Résultat string

AllButLastPart() public static méthode

Return everything in a Uri except for the last part of the name.
public static AllButLastPart ( string name ) : string
name string
Résultat string

GetFirstPart() public static méthode

Get the first part of a Uri name. Example: GetFirstPart("a.b.c") returns "a"
public static GetFirstPart ( string name ) : string
name string
Résultat string

GetLastPart() public static méthode

Get the last part of a Uri name. Example: GetLastPart("a.b.c") returns "c"
public static GetLastPart ( string name ) : string
name string
Résultat string

GetParts() public static méthode

Get the separate parts of a Uri name. Example: GetParts("a.b.c") returns {"a", "b", "c"}
public static GetParts ( string name ) : string[]
name string
Résultat string[]