Last active
November 14, 2019 15:11
-
-
Save MartinZikmund/be1af722d0318eacb17ba89100e3fad5 to your computer and use it in GitHub Desktop.
RiddleTest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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