0

I want to use a string that I get from other methods as a command.I get setting name form the method call, and it is different everytime.

Example:

var SettingValue = string.Format("appPool.{0}", settingName);

Is it possible to use that string to do the following:

var what = appPool.Recycling.PeriodicRestart.Time;
Sayse
  • 42,633
  • 14
  • 77
  • 146
hMp
  • 27
  • 5

0 Answers0