Skip to content

Instantly share code, notes, and snippets.

@MartinZikmund
Last active November 14, 2019 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MartinZikmund/be1af722d0318eacb17ba89100e3fad5 to your computer and use it in GitHub Desktop.
Save MartinZikmund/be1af722d0318eacb17ba89100e3fad5 to your computer and use it in GitHub Desktop.
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