VFSPathExtensions.ChangeExtension(thisVFSPath,string).md

January 20, 2026 ยท View on GitHub

Atypical.VirtualFileSystem.Core

Atypical.VirtualFileSystem.Core.Extensions.VFSPathExtensions

VFSPathExtensions.ChangeExtension(this VFSPath, string) Method

Changes the extension of a VFS path.

public static string ChangeExtension(this Atypical.VirtualFileSystem.Core.VFSPath path, string newExtension);

Parameters

path VFSPath

The VFS path.

newExtension System.String

The new extension (with or without leading dot).

Returns

System.String
A new path with the changed extension.