Object Copy C# with Example



Object Copy C# with Example

 	using System;

	namespace CSharpFundamentals
	{
		class ObjectCopy
		{
			static void Main(string[] args)
			{
				int[] rollnumbers = {100, 200};
				int[] numbers = rollnumbers;
				
				numbers[0] = 300;
				
				Console.WriteLine("Roll Number {0}", rollnumbers[0]);
			}
		}
	}
 

0 Comment's

Comment Form

Submit Comment