Felbook.Helpers.ImageHelper.IsImage C# (CSharp) 메소드

IsImage() 공개 정적인 메소드

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