How to Create DLL in C#.NET

How to Create DLL in C#.NET
           Watch Video Click Here




using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Operation;// new dll that created
namespace Create_Dll
{
    public partial class Form1 : Form
    {
        Opeartion o = new Opeartion();
        public Form1()
        {
            InitializeComponent();

          

        }

        private void button1_Click(object sender, EventArgs e)
        {

            float a, b, res;

            a = float.Parse(txtfirstval.Text);

            b = float.Parse(txtsecval.Text);

            res = o.add(a, b);

            MessageBox.Show("Addition of two values are : "+res);

           

        }

        private void button2_Click(object sender, EventArgs e)
        {

            float a, b, res;

            a = float.Parse(txtfirstval.Text);

            b = float.Parse(txtsecval.Text);

            res = o.mul(a,b);

            MessageBox.Show("Multipication of two values are : " + res);

        }
    }

}

Comments