|
using System.IO;
namespace Sedge.Core.FileSystemWrap
{
class PathWrap : IPathWrap
{
public string Combine(string path1, string path2)
{
return Path.Combine(path1, path2);
}
public string GetDirectoryName(string path)
{
return Path.GetDirectoryName(path);
}
public string GetExtension(string path)
{
return Path.GetExtension(path);
}
public string GetFileName(string path)
{
return Path.GetFileName(path);
}
public string GetFileNameWithoutExtension(string path)
{
return Path.GetFileNameWithoutExtension(path);
}
public string GetFullPath(string path)
{
return Path.GetFullPath(path);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I am a software developer from Toronto with 15 years of experience in software design and development. My major professional area is the development of highly customized software solutions, including desktop and web applications. Industrial process automation and hardware-related software development are among my favorite projects and I enjoyed developing several applications for semiconductor manufacturing companies.
My blog: http://LunarFrog.com/blog