Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

PictureHashItem.cs

namespace Nop.Core.Domain.Media;

/// 
/// Helper class for making pictures hashes from DB
/// 
public partial class PictureHashItem : IComparable, IComparable
{
    /// 
    /// Gets or sets the picture ID
    /// 
    public int PictureId { get; set; }

    /// 
    /// Gets or sets the picture hash
    /// 
    public byte[] Hash { get; set; }

    /// 
    /// Compares this instance to a specified and returns an indication
    /// 
    /// An object to compare with this instance
    /// 
    public int CompareTo(object obj)
    {
        return CompareTo(obj as PictureHashItem);
    }

    /// 
    /// Compares this instance to a specified and returns an indication
    /// 
    /// An object to compare with this instance
    /// 
    public int CompareTo(PictureHashItem other)
    {
        return other == null ? -1 : PictureId.CompareTo(other.PictureId);
    }
}