Class Library and Windows Form Application C#

Class Library and Windows Form Application C#

Ogrenci Class Library DLL  ```csharp
namespace ogrenci
{
    public class Ogrenci
    {
        private string firstname;
        private string lastname;
        private int age;

        public Ogrenci()
        { }

        public int public_Age
        {
            get { return age; }
            set { age = value; }
        }

        public string public_FirstName
        {
            get { return firstname; }
            set { firstname = value; }
        }

        public string public_LastName
        {
            get { return lastname; }
            set { lastname = value; }
        }

        public override string ToString()
        {
            return "Name: " + public_FirstName + " " + public_LastName + Environment.NewLine + "Age: " + public_Age.ToString()+ Environment.NewLine;
        }
    }
}




    Ogrenci Kayıt WFA
```csharp
    using ogrenci;
    namespace OgrenciKayıt
    {
        public partial class Form1 : Form
        {
            public Form1()
            {
                InitializeComponent();
                
            }
            List<Ogrenci> ogrenciler = new List<Ogrenci>();
            private void btnKaydet_Click(object sender, EventArgs e)
            {
                Ogrenci temp = new Ogrenci();
                temp.public_FirstName = txtName.Text;
                temp.public_LastName = txtLast.Text;
                temp.public_Age = int.Parse(txtYas.Text);
                ogrenciler.Add(temp);
            }

            private void button1_Click(object sender, EventArgs e)
            {
                for (int i = 0; i < ogrenciler.Count; i++)
                    txtList.Text = txtList.Text + ogrenciler[i].ToString();
            }
        }
    }

OGRENCI CLASS LIBRARY DOWNLOAD

OGRENCI KAYIT WFA