๐จ๐ผ๐ป๊ฐ๋ฐ/C#
C# - ์ค์ ๊ฐ ๋ฐฐ์ด(array) ํํ๋ก ์ ์ฅํ๊ณ ๋ถ๋ฌ์ค๊ธฐ
Janger
2023. 2. 1. 22:41
728x90
์ ์ฅํ๊ธฐ
string value = String.Join(",", intArray.Select(i => i.ToString()).ToArray());
Properties.Settings.Default.option_array = value;
Properties.Settings.Default.Save();
๋ถ๋ฌ์ค๊ธฐ
int[] arr = Properties.Settings.Default.option_array.Split(',').Select(s => Int32.Parse(s)).ToArray();
์ถ์ฒ:
https://stackoverflow.com/questions/1766610/how-to-store-int-array-in-application-settings
How to store int[] array in application Settings
I'm creating a simple windows Forms application using C# express 2008. I'm an experienced C++ developer, but I am pretty much brand new to C# and .NET. I'm currently storing some of my simple
stackoverflow.com
728x90