CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2007
    Location
    Argentina
    Posts
    579

    still messing with reflecting the constructor

    Is there a robust way to get a constructor with string parameter by reflection?

    I have no choice, but instantiate a class without knowing if the constructor belongs to it, a base class, or come intermediate class in the inheritance chain.
    [Vb.NET 2008 (ex Express)]

  2. #2
    Join Date
    Mar 2007
    Location
    Argentina
    Posts
    579

    Re: still messing with reflecting the constructor

    Quote Originally Posted by Marraco View Post
    Is there a robust way to get a constructor with string parameter by reflection?

    I have no choice, but instantiate a class without knowing if the constructor belongs to it, a base class, or come intermediate class in the inheritance chain.
    I used the .getconstructor method, in a for next, and tried every possible binding flags, but no without result.
    [Vb.NET 2008 (ex Express)]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured