PAGUE 6 MESES
LEVE 12 MESES
GARANTIR DESCONTO

Fórum ILIST<> WEB FORM #550470

05/04/2016

0

ola,

preciso criacar um ILIST<> com paramentro de entrada no windows form

 public IList<Cabecalho>ListaCabecalho(IList<Cabecalho> pallet)
        {
            IList<Cabecalho> cb = new List<Cabecalho>();
        

            return cb;
        }


tentei assim mas dá erro.

Inconsistent accessibility: parameter type 'System.Collections.Generic.IList<print.Cabecalho>' is less accessible than method '


so um techo do codigo. sempre acusa erro logon no inicio

 public IList<Cabecalho>ListaCabecalho(string pallet) 
        {

List<Cabecalho> Lista = new List<Cabecalho>();

 return Lista;

}


Tentei desta forma tambem dá erro
Jefferson

Jefferson

Responder

Posts

05/04/2016

Jefferson

A classe Cabecalho existe


  class Cabecalho
    {
        public string modelo { get; set; }
        public string quantidade { get; set; }
        public string pallet { get; set; }
        public string QtdAmostra { get; set; }
        public string dataEnvio { get; set; }
    }
Responder

Gostei + 0

Utilizamos cookies para fornecer uma melhor experiência para nossos usuários, consulte nossa política de privacidade.

Aceitar