Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
RiddleTest
static void Main(string[] args)
{
var valuesArray = new ValueHolder[] { new ValueHolder() };
valuesArray[0].SetValue(5);
var valuesList = new List<ValueHolder>() { new ValueHolder() };
valuesList[0].SetValue(5);
Console.WriteLine(valuesList[0].Value == valuesArray[0].Value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment