I have a string type to be assigned to owner of type ‘User‘. My method GetFullName returns the name in a ‘string‘ format and i need to assign it to owner of type ‘User‘
def.Owner = uf.GetFullName(row["assignedto"].ToString());
Any suggestions would be helpful,
So you need something like:
Personally, I’m not a fan of implicit conversions, however. You say that you “need” to assign it this way… what’s wrong with an explicit constructor or static method call? Or perhaps an extension method (
ToUser) onstring?