Show / Hide Table of Contents

Class FileUtility

Provides file utilities.

Inheritance
System.Object
FileUtility
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Celerik.NetCore.Util
Assembly: cs.temp.dll.dll
Syntax
public static class FileUtility

Methods

ExistsFileInExecutingAssemblyDir(String)

Checks if the passed-in fileName exists in the executing assembly directory.

Declaration
public static bool ExistsFileInExecutingAssemblyDir(string fileName)
Parameters
Type Name Description
System.String fileName

The file name.

Returns
Type Description
System.Boolean

True if the passed-in fileName exists in the executing assembly directory.

Exceptions
Type Condition
ArgumentNullOrEmptyException

The fileName is null or empty.

GetExecutingAssemblyDir()

Gets the full path of the executing assembly directory.

Declaration
public static string GetExecutingAssemblyDir()
Returns
Type Description
System.String

Full path of the executing assembly directory.

LocateFileInExecutingAssemblyDir(String)

Gets the full path of a file that is placed in the executing assembly directory.

Declaration
public static string LocateFileInExecutingAssemblyDir(string fileName)
Parameters
Type Name Description
System.String fileName

The file name.

Returns
Type Description
System.String

Full path of a file that is placed in the executing assembly directory.

Exceptions
Type Condition
ArgumentNullOrEmptyException

The fileName is null or empty.

In This Article
Back to top Generated by DocFX