Felbook.Helpers.ImageHelper.IsImage C# (CSharp) Méthode

IsImage() public static méthode

public static IsImage ( string contentType ) : bool
contentType string
Résultat bool
        public static bool IsImage(string contentType)
        {
            return contentType == "image/jpeg" || contentType == "image/gif" || contentType == "image/png";
        }