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

Mostrar archivo Open project: ArtemisEngine/Artemis-Engine Class Usage Examples

Public Methods

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

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

AllButLastPart() public static method

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

GetFirstPart() public static method

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

GetLastPart() public static method

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

GetParts() public static method

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