C# Class F2F.Sandbox.ResourceFileLocator

Resource file locator.
Inheritance: IFileLocator
Mostrar archivo Open project: apprenda/F2F.Sandbox

Public Methods

Method Description
CopyTo ( string fileName, string destinationPath ) : void

See F2F.Sandbox.IFileLocator.CopyTo(string, string)

EnumeratePath ( string path ) : IEnumerable

See F2F.Sandbox.IFileLocator.EnumeratePath(string)

Exists ( string fileName ) : bool

See F2F.Sandbox.IFileLocator.Exists(string)

ResourceFileLocator ( Type typeInRootNamespace ) : System

Initializes the file locator with the given type.

Private Methods

Method Description
CopyTo ( Stream input, Stream output ) : void
GetFullResourceName ( string fileName ) : string
GetPathFromResource ( string resourceName ) : string
NormalizeDirectoryPath ( string path ) : string
ReplaceLast ( string text, string search, string replace ) : string

Method Details

CopyTo() public method

See F2F.Sandbox.IFileLocator.CopyTo(string, string)
public CopyTo ( string fileName, string destinationPath ) : void
fileName string
destinationPath string
return void

EnumeratePath() public method

See F2F.Sandbox.IFileLocator.EnumeratePath(string)
public EnumeratePath ( string path ) : IEnumerable
path string
return IEnumerable

Exists() public method

See F2F.Sandbox.IFileLocator.Exists(string)
public Exists ( string fileName ) : bool
fileName string
return bool

ResourceFileLocator() public method

Initializes the file locator with the given type.
public ResourceFileLocator ( Type typeInRootNamespace ) : System
typeInRootNamespace System.Type The type in root namespace.
return System