FileSystemExtensions.ChangeExtension method
namespace: Serenity assembly: Serenity.Net.Core
Changes the extension of a path string.
public static string ChangeExtension(this IFileSystem _, string path, string extension)
| parameter | description |
|---|---|
| _ | File system |
| path | The path information to modify. The path cannot contain any of the characters defined in System.IO.Path.GetInvalidPathChars. |
| extension | The new extension (with or without a leading period). Specify null to remove an existing extension from path. |
See Also
- interface IFileSystem
- class FileSystemExtensions