خرید بک لینک

مثال از List

در این گزارش، تازه‌ترین اطلاعات درباره «مثال از List» را می‌خوانید.

public class Student

}

        private string _firstName; //Student's first name  

        private string _lastName; //Student's last name  

        private string _studentCode; //Student's code  

        private int _entryTerm; //Student's entry number  

 

    First name get/set//   

   ( public void SetFirstName(string fname 

       ; firstName =_ fname  }

{

 

   } ()public int GetFirstName  

        ;return _lastName  

  {

 

    Last name get/set//

    }(public void SetLastName(string lname 

       ;lastName = lname_ 

  {

 

 }()public int GetLastName 

        ;return _lastName 

{

    Student code get/set//

   }( public void SetStudentCode(string scode 

       ;studentCode = scode_ 

    {

 

    }()public int GetStudentCode 

        ;return _studentCode 

    {

 

    Entry term get/set//

   } (public void setEntryTerm(string eterm 

       ;entryTerm = eterm_ 

   {

    }()public int GetEntryTerm 

        ;return _entryTerm 

  {

   get/set end//

 

    (public void Add(List stulist, string fname, string lname, string scode, string eterm 

        (if (stulist != null}

          }  

;()Student stu = new Student    

            ;(stu.SetFirstName(fname    

            ;(stu.SetLastName(lname   

            ;(stu.SetStudentCode(scode   

            ;(stu.SetEntryTerm(eterm   

            ;(stulist.Add(stu    

          {   

 {

 Creats the list of students//

 

   (public studentSearch (Liststulist; string scode  

       ; Student  result   

      }  (foreach (Student stu in stulist  

           } (if(stu.scode == scode   

                ;result = stu   

               ; break   

          {

           ; return result   

        {

  {

    Search ability//

{

 

 

 

برچسب: نویسنده: هلیا جلالی تاريخ: چهارشنبه 31 تير 1405 ساعت: 18:50

صفحه بندی