Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 1.63 KB

File metadata and controls

33 lines (20 loc) · 1.63 KB

VFSPathExtensions.HasExtension(this VFSPath, string, bool) Method

Checks if the path has a specific extension.

public static bool HasExtension(this Atypical.VirtualFileSystem.Core.VFSPath path, string extension, bool ignoreCase=true);

Parameters

path VFSPath

The VFS path.

extension System.String

The extension to check (with or without leading dot).

ignoreCase System.Boolean

Whether to ignore case. Default is true.

Returns

System.Boolean
True if the path has the specified extension.