static string ClassDescription(XmlNode Node) { object P = new Plant(); Assembly A = Assembly.GetAssembly(P.GetType()); Type T = A.GetType(XmlUtilities.Type(Node)); if (T != null) { object[] Attributes = T.GetCustomAttributes(true); if (Attributes != null) { String atts = null; foreach (object Att in Attributes) { // if (Att is Description) atts += Att.ToString() + "\n"; } if (atts != null) { return(atts); } } } return(""); }
public override string ToString() { return ("Pos: " + Pos + "|" + "Att: " + Att.ToString()); }