ChangeExtension(string) Method
Changes the file extension of the path.
Namespace
Statiq.Common
Containing Type
NormalizedPath

Syntax

public NormalizedPath ChangeExtension(string extension)

Remarks

Passing in System.String.Empty will result in an empty extension while retaining the .. Passing in null will result in removing the extension.

Parameters

Name Type Description
extension string The new extension.

Return Value

Type Description
NormalizedPath A new path with the new extension.