AbstractPath.WithExtension

AbstractPath.WithExtension method

Returns a new AbstractPath with the file extension changed to the specified value.

public virtual AbstractPath WithExtension(string newExtension)
ParameterTypeDescription
newExtensionStringA new extension.

Return Value

A new AbstractPath, that points to a file in the same directory, but with a new extension.

Remarks

Usually, an inheritor should not override this method. The default implementation substitutes the extension and calls WithLocation.

See Also