protected void LoadThingField(XmlElement Node, IThing T) { XmlElement ThingRoot = Node.SelectSingleNode(String.Format("./child::thing[@type = '{0}']", T.GetType().Name)) as XmlElement; if (ThingRoot != null) { T.Load(ThingRoot); } else { throw new ArgumentException(String.Format(I18N.GetText("InvalidThingField"), T.TypeName)); } }
protected void LoadThingField(XmlElement Node, IThing T) { XmlElement ThingRoot = Node.SelectSingleNode(String.Format("./child::thing[@type = '{0}']", T.GetType().Name)) as XmlElement; if (ThingRoot != null) T.Load(ThingRoot); else throw new ArgumentException(String.Format(I18N.GetText("InvalidThingField"), T.TypeName)); }