-
-
Save onlyforbopi/d61282b1433b59164f9f303637a924ab to your computer and use it in GitHub Desktop.
Revisions
-
onlyforbopi revised this gist
Jul 2, 2021 . No changes.There are no files selected for viewing
-
onlyforbopi created this gist
Jul 2, 2021 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ 1. List of anything You can specify not only custom types. List<int>, List<double>, List<string> will works as well. If you need to store mixed types - you need to specify closest base class for all types. In List<object> can be stored instance of any type. If you are willing to give away type safety you can use an ArrayList, which was the only way to use a list of stuff pre generics. https://stackoverflow.com/questions/9184764/storing-different-types-inside-a-list