static void Main(string[] args) { myClass <int> test = new myClass <int> { Value = 3 }; myClass <int> test2 = new myClass <int> { Value = 5 }; Console.WriteLine(test.Value); test.CopyFromSecond(test2); Console.WriteLine(test.Value); Console.ReadKey(); }