Exemplo n.º 1
0
        /*
         * public string Listar(){
         *  string strValores = "";
         *
         *  foreach (Aluno i in this.Alunos)
         *  {
         *      strValores += "\n" + i.ToString();
         *
         *  }
         *  return strValores;
         * }
         */
        public Aluno Consultar_matricula(int m)
        {
            Aluno res = this.Alunos.Find(x => x.Matricula == m);

            return(res);
        }
Exemplo n.º 2
0
        public double Mostrar_media(string nome)
        {
            Aluno res = this.Alunos.Find(x => x.Primeiro_nome.Equals(nome));

            return(res.media());
        }
Exemplo n.º 3
0
 public void AdicionarAluno(Aluno x)
 {
     this.Alunos.Add(x);
 }