ฉันเพิ่งเริ่มทำงานกับ .NET Framework 4.5 ของ C# ฉันกำลังใช้แอปพลิเคชัน Windows Form ฉันได้ทำการนำเข้าที่จำเป็นแล้ว เช่น:
using System.Configuration;
แต่จริงๆ แล้วคลาส ConfigurationManager ดูเหมือนว่าไม่ได้ออก ฉันได้ลองใช้ ConfigurationSettings แทน แต่ Visual Stdio บอกฉันว่ามันล้าสมัยและแทนที่ด้วย ConfigurationManager!
นี่คือโค้ดที่เกี่ยวข้องกับปัญหา:
Int32.Parse StartingMonth = int.parse(ConfigurationManager.AppSettings["StartingMonthColumn"]);
ดังนั้นคุณช่วยฉันหน่อยได้ไหม?