AbstractPath.Combine

AbstractPath.Combine method

Combines this AbstractPath with specified path components.

public virtual AbstractPath Combine(string location)
ParameterTypeDescription
locationStringA path component to append to this AbstractPath.

Return Value

A new AbstractPath pointing to a Location that is a combination of locations of this AbstractPath and the argument.

Remarks

Usually this method should not be overridden by an inheritor. The default implementation concatenates this Location with the argument and calls the WithLocation method with the concatenated string as an argument. The combination result is defined in the following way: If the argument starts with the Separator, the combination result equals to the argument;Otherwise, if Location ends with the Separator, the combination result equals to +;Otherwise, the result is equal to + +

See Also