public id DecodeObjectForKey(string keyName) { id nsObj = null; XElement xElm = _classDict.Find(i => (string)i.Attribute("key") == keyName); if (xElm != null) { nsObj = (id)Create(xElm); } return nsObj; }