Tech Off Post

Single Post Permalink

View Thread: is 'new object().property' or 'new object().method()' a good idea?
  • User profile image

    evildictaitor wrote:
    JChung2006 wrote:
    GetType(Application).GetConstructor(New System.Type() {}).Invoke(New Object() {}).Run(f)

    While your post is technically correct, using reflection just to inline a function is never a good idea.

    Ya, but he did answer the question, that is a way to do it with just oneline of code in