Consider the code and output:
using Microsoft.Xna.Framework;
//Where color is from ^ that
static Color color = new Color(0, 0, 0, 0);
static void Main(string[] args)
{
Color otherColor = color;
color.B = 100;
Console.WriteLine(otherColor.B);
Console.WriteLine(color.B);
Console.ReadLine();
}
//output
//0 <-- otherColor
//100 <-- color
However, I would like otherColor to carry the same value by reference, such that the output would become
//100
//100
If possible, how could I achieve this?