Search Results for

    Show / Hide Table of Contents

    Class DirectoryWrapper

    Inheritance
    object
    DirectoryWrapper
    Implements
    IDirectoryWrapper
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.DesktopTools.Wrappers
    Assembly: LemonEdge.DesktopTools.dll
    Syntax
    public class DirectoryWrapper : IDirectoryWrapper

    Constructors

    DirectoryWrapper()

    Declaration
    public DirectoryWrapper()

    Methods

    GetFiles(string, string)

    Gets an array of file names in the specified directory that match the specified search pattern.

    Declaration
    public string[] GetFiles(string path, string searchPattern)
    Parameters
    Type Name Description
    string path

    The path of the directory to search.

    string searchPattern

    The search pattern to match against the names of files in the directory.

    Returns
    Type Description
    string[]

    An array of the full names (including paths) of files that match the specified search pattern.

    GetFiles(string, string, SearchOption)

    Gets an array of file names in the specified directory that match the specified search pattern and search option.

    Declaration
    public string[] GetFiles(string path, string searchPattern, SearchOption searchOption)
    Parameters
    Type Name Description
    string path

    The path of the directory to search.

    string searchPattern

    The search pattern to match against the names of files in the directory.

    SearchOption searchOption

    One of the enumeration values that specifies whether the search operation should include all subdirectories or only the current directory.

    Returns
    Type Description
    string[]

    An array of the full names (including paths) of files that match the specified search pattern and option.

    Implements

    IDirectoryWrapper

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.