Пример #1
0
        public void Delete(int id)
        {
            List <string> linhas = ReadAllLinesCSV(PATH);

            linhas.RemoveAll(x => x.Split(";")[0] == IdPublicacao.ToString());
            RewriteCSV(PATH, linhas);
        }
Пример #2
0
            public override int GetHashCode()
            {
                var hashCode = -919713977;

                hashCode = hashCode * -1521134295 + CodLike.GetHashCode();
                hashCode = hashCode * -1521134295 + IdPublicacao.GetHashCode();
                hashCode = hashCode * -1521134295 + IdUsuario.GetHashCode();
                return(hashCode);
            }