Tech Off Post

Single Post Permalink

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

    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.