Returns last node of a given path. On Mon, Feb 22, 2010 at 9:01 PM, Learner <[email protected]> wrote:
> Hi,
>
> Can some one explain the below function
>
> public static string ExtractUserName(string path)
> {
> string[] userPath = path.Split(new char[] { '\\' });
> return userPath[userPath.Length - 1];
> }
>
> Thanks,
>
> L
>
