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
๋ฐ์ํ
'๐จ๐ผโ๐ป๊ฐ๋ฐ > C#' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
C# - dataGridView1 ์ ๊ฐ ์์ ํ๊ธฐ (0) | 2023.02.01 |
---|---|
C# - ๋ง์ดํฌ๋ก์ํํธ ๊ณต์ UWP, WPF ์์ต์ (GUI ํ๋ก๊ทธ๋๋ฐ) ๋ฐ ๋์ ์ฐจ์ด์ (0) | 2023.01.19 |
C# - textBox PlaceHolder ๊ตฌํ (0) | 2022.10.26 |
C# - ๋ฉํฐ์ค๋ ๋์์ ํด๋ฆฝ๋ณด๋ ๊ธฐ๋ฅ(OLE) ์ฌ์ฉํ๊ธฐ (0) | 2022.10.19 |
C# - ๋ชจ๋ UI ํ๋ ์์ํฌ(MahApps.Metro) (0) | 2022.10.13 |