File: Abstractions\FileSystemInfoBase.cs
Web Access
Project: src\src\libraries\Microsoft.Extensions.FileSystemGlobbing\src\Microsoft.Extensions.FileSystemGlobbing.csproj (Microsoft.Extensions.FileSystemGlobbing)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
namespace Microsoft.Extensions.FileSystemGlobbing.Abstractions
{
    /// <summary>
    /// Shared abstraction for files and directories
    /// </summary>
    public abstract class FileSystemInfoBase
    {
        /// <summary>
        /// A string containing the name of the file or directory
        /// </summary>
        public abstract string Name { get; }
 
        /// <summary>
        /// A string containing the full path of the file or directory
        /// </summary>
        public abstract string FullName { get; }
 
        /// <summary>
        /// The parent directory for the current file or directory
        /// </summary>
        public abstract DirectoryInfoBase? ParentDirectory { get; }
    }
}