Skip to content

Latest commit

 

History

History
33 lines (20 loc) · 2.6 KB

File metadata and controls

33 lines (20 loc) · 2.6 KB

VFSSearchExtensions.WithNameStartingWith(this IEnumerable<IFileNode>, string, bool) Method

Filters files by name starting with specific text.

public static System.Collections.Generic.IEnumerable<Atypical.VirtualFileSystem.Core.Contracts.IFileNode> WithNameStartingWith(this System.Collections.Generic.IEnumerable<Atypical.VirtualFileSystem.Core.Contracts.IFileNode> files, string prefix, bool ignoreCase=true);

Parameters

files System.Collections.Generic.IEnumerable<IFileNode>

The files to filter.

prefix System.String

The prefix to search for.

ignoreCase System.Boolean

Whether to ignore case. Default is true.

Returns

System.Collections.Generic.IEnumerable<IFileNode>
Files with names starting with the specified prefix.