<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
</startup>
<appSettings>
<add key ="WindowWidth" value ="1000" />
<add key ="WindowHeight" value ="600" />
<add key ="initialSceneBackgroundImagePath" value ="here/down/good.jpg" />
</appSettings>
</configuration>
{
class Configure
{
private Configure() { }
public static string getByKey(string key)
{
return ConfigurationManager.AppSettings[key];
}
}
}
쓰임 예
backgroundImagePath = Configure.getByKey("initialSceneBackgroundImagePath");
댓글 없음:
댓글 쓰기