public override bool Equals(object obj)
        {
            if (!(obj is ResizeWorkerItem))
            {
                return(false);
            }

            var item = (ResizeWorkerItem)obj;

            return(item.ContactID.Equals(ContactID) && RequireFotoSize.Equals(item.RequireFotoSize) && ImageData.Length == item.ImageData.Length);
        }
 public override int GetHashCode()
 {
     return(ContactID ^ RequireFotoSize.GetHashCode() ^ ImageData.Length);
 }