Advertisement
Guest User

Untitled

a guest
May 24th, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  1. public string GetFilePath(string fileName)
  2. {
  3.     string destination = Environment.CurrentDirectory;
  4.  
  5.     for (int i = 0; i < 3; i++)
  6.     {
  7.         destination = Directory.GetParent(destination).ToString();
  8.     }
  9.  
  10.     return destination + "/Domainlayer/Content/" + fileName;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement