Created
May 11, 2023 07:45
-
-
Save BinToss/6ed5ab8b71c8e4ff4d5127cbb28e3184 to your computer and use it in GitHub Desktop.
C# - Can I add items to a readonly list?
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
#!meta | |
{"kernelInfo":{"defaultKernelName":"csharp","items":[{"aliases":[],"name":"csharp"}]}} | |
#!csharp | |
// You can Add items to readonly lists! | |
List<uint> luint {get;} = new(){10u}; | |
luint.Add(67u); | |
luint.Display(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment