mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-22 19:10:41 -10:00
Commit migrated from https://github.com/dotnet/corefx/commit/7cad8486cbabbce0236bdf530e30db7036335524
30 lines
744 B
C#
30 lines
744 B
C#
// Licensed to the .NET Foundation under one or more agreements.
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
internal class PathInfo
|
|
{
|
|
private readonly string[] _paths;
|
|
|
|
public PathInfo(string[] paths)
|
|
{
|
|
_paths = paths;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the sub paths that make up this path. For example, in "C:\Windows\System32", this would return "C:", "C:\Windows", "C:\Windows\System32".
|
|
/// </summary>
|
|
public string[] SubPaths
|
|
{
|
|
get { return _paths; }
|
|
}
|
|
|
|
public string FullPath
|
|
{
|
|
get { return _paths[_paths.Length - 1]; }
|
|
}
|
|
}
|