예제 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            //MyLib.Util myUtility = new MyLib.Util();  //instance
            //MessageBox.Show(myUtility.Method2());

            Util aVarName = new Util();             // instance with using MyLib
            MessageBox.Show(aVarName.Method2());

            //string returnData = MyLib.Util.Method1();   //static
            //MessageBox.Show(returnData);

            MessageBox.Show(Util.Method1());        // static with using MyLib
        }