Fehler beo Petzold?
-
hallo ich arbeite mich gerade in Anwendung=Code+Markup von Charles Petzold ein.
Auf Seite 375 steht dieser Code:
PropertyInfo[] props = typeof(SystemParameters).GetProperties(); foreach(PropertyInfo prop in props) if (prop.PropertyType != typeof(ResourceKey)) { [b]SystemParam sysparam = new SystemParam(); [/b] sysparam.Name = prop.Name; sysparam.Value = prop.GetValue(null, null); lstvue.Items.Add(sysparam); }
Aber was zur Hölle ist SystemParam? Das kennt weder die MSDN noch der Compiler und ich natürlich auch nicht ...
Vielleicht kann ja hier jemand helfen.
-
Sieh Dir den Code für Kap. 16 an (SystemParam.cs).
namespace Petzold.ListSystemParameters { public class SystemParam { string strName; object objValue; public string Name { set { strName = value; } get { return strName; } } public object Value { set { objValue = value; } get { return objValue; } } public override string ToString() { return Name + " = " + Value; } } }
-
Hat jemand die ISBN für mich ? Vielen Dank!