Is it possible create a new instance of a class, call a method, and cast its return value in a single line?
I am trying to do the following in a single line:
var converter = new ColorConverter();
return (Color)converter.ConvertFromString("#FFDFD991");
From what I see, it looks like ConvertFromString() could probably be made into a static method, in which case you could simply call it like this: