ILIST<> WEB FORM

.NET

05/04/2016

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

Curtidas 0

Respostas

Jefferson

Jefferson

05/04/2016

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; }
    }
GOSTEI 0
POSTAR