2
\$\begingroup\$

Generically calling an overloaded method

My question has been deemed off topic even after editing. What else is needed?

\$\endgroup\$

1 Answer 1

9
\$\begingroup\$

In short, nothing as far as I can see. This is your comment on the answer to your question.

I simplified this from working code, otherwise Value is a property of another object, and so was the Description. Tried to show the meat of the problem and didnt cared about code formatting as Resharper is my shepherded and I fear no code formatting evil! Thank you :) Wether an object can be at least 2 different types at once, that is damn good question and all my code massaging seems to be pointless :( Thanks again, with those hints I think this question is now stupid and should have used a better design for this case rather than tried to jimmy bar it with ugly if's! :) – Arjang 3 hours ago

So, you posted hypothetical code, which is off topic. You could update your question with the real code, but if you do that, it will surely be rolled back because it would invalidate the existing answer. That answer shouldn't have been posted, because it creates situations like this, but that's another matter entirely.

I think your best bet at this point is to create a new question with your real code.

\$\endgroup\$
3
  • 3
    \$\begingroup\$ "That answer shouldn't have been posted" As the one who posted it, I sort-of agree, and I was planning on merely adding a comment, but that grew too long. (Hence my question: "Is this really actual, working code?") I'm perfectly willing to delete my answer, though I still feel that a question consisting solely of this method wouldn't be enough for a review. \$\endgroup\$
    – BCdotWEB
    Commented Jun 2, 2015 at 12:52
  • \$\begingroup\$ Thanks for chiming in @BCdotWEB. That quote was what made me think the answer shouldn't have been posted, but I can see how it started as a comment that turned into a (sort of) legit answer. I'm not trying to bash you here, honest. I just wanted to bring the sticky situation to your attention. \$\endgroup\$
    – RubberDuck
    Commented Jun 2, 2015 at 12:55
  • \$\begingroup\$ And it annoys me when someone includes meta information in a main site answer. \$\endgroup\$
    – Jamal
    Commented Jun 2, 2015 at 13:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .