Method GetPictureUrl

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 anos atrás
Hello,

public static class PictureManager

PART OF NAMESPACE ;

namespace NopSolutions.NopCommerce.BusinessLogic.Media

HAS METHOD GetPictureUrl OVERLOADED THREE TIMES WITH DIFFERENT PARAMETERS

public static string GetPictureUrl(int imageId, int TargetSize);
public static string GetPictureUrl(Picture picture, int TargetSize);
public static string GetPictureUrl(Picture picture, int TargetSize, bool showDefaultPicture);

WHERE IS THE BODY OF METHOD GetPictureUrl

Regards,
12 anos atrás
Hello Lubish

In Visual Studio if you right click on the method then click [ Go to Definition ] it should take you to it.

Thanks
12 anos atrás
right clicking does not take us to the method, it just shifts the cursor focus to the start of method name on the same page like follows

|GetPictureUrl

the title of this class file is as follows

PictureManager [from metadata] a small blue lock icon here

is the small blue lock icon someting to do with the class being locked and we can't navigate to the method definition

regards,
12 anos atrás
It's in :  \Libraries\Nop.BusinessLogic\Media\PictureService.cs

        public string GetPictureUrl(int imageId)
        {
            Picture picture = GetPictureById(imageId);
            return GetPictureUrl(picture);
        }
        public string GetPictureUrl(Picture picture)
        {
            return GetPictureUrl(picture, 0);
        }
        public string GetPictureUrl(int imageId, int targetSize)
        {
            var picture = GetPictureById(imageId);
            return GetPictureUrl(picture, targetSize);
        }
        public string GetPictureUrl(Picture picture, int targetSize)
        {
            return GetPictureUrl(picture, targetSize, true);
        }
        public string GetPictureUrl(int imageId, int targetSize,
            bool showDefaultPicture)
        {
            var picture = GetPictureById(imageId);

           ...............
12 anos atrás
excellent
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.