GetPathFileExtensions() Method

Definition

Namespace CliInvoke
Assembly CliInvoke.dll

Returns the file extensions listed in the PATHEXT environment variable, lowercased in a single pass before being returned.

protected virtual string[] GetPathFileExtensions()

Returns

String[]
A new String array containing the lowercased file extensions.

Remarks

Subclasses receive a freshly allocated array in which every character has been converted to its lowercase form. The returned array is safe to mutate without affecting the underlying PATHEXT environment variable.