ActivEarth.Account.EditProfile.userImageDirPath C# (CSharp) Méthode

userImageDirPath() private méthode

Like imageDirPath except will give the exact directory the users image is in.
private userImageDirPath ( string dirName, int userID ) : string
dirName string Name of the directory. Typically you can just use the name of an image size.
userID int The ID of the user.
Résultat string
        private string userImageDirPath(string dirName, int userID)
        {
            int userDir = (userID / 1000);
            return String.Format("{0}\\{1}\\", imageDirPath(dirName), userDir);
        }