Example #1
0
File: new.cs Project: alexascs/alex
 public AlexClass clonem()
 {
     AlexClass temp;
                          temp=new AlexClass();
                         return temp ;
 }
Example #2
0
File: new.cs Project: alexascs/alex
        static void Main(string[] args)
        {
            AlexClass  aAlexClass=new AlexClass();
              AlexClass  aAlexClass2;

            aAlexClass.mystring="to tring";
                aAlexClass2=aAlexClass.clonem();
                aAlexClass2.mystring="to alex class2";

               aAlexClass.I=10;
               aAlexClass.J=5;
               aAlexClass.fu();
               Console.WriteLine(aAlexClass.K);
                aAlexClass.del=matr.dec;
                aAlexClass.fu();
               Console.WriteLine(aAlexClass.K);
                aAlexClass.del=matr.sum;
                aAlexClass.fu();
               Console.WriteLine(aAlexClass.K);

               		Console.WriteLine(aAlexClass2.mystring);
             Console.ReadLine();
        }