Re: Calling an internal constructor
- From: "Nicholas Paldino [.NET/C# MVP]" <mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 7 Apr 2005 10:44:10 -0400
Pete,
Unfortunately, there is nothing you can do to call this constructor from
your constructor in code (even through reflection) so that your class can
derive from that class correctly.
I would recommend going to the Product Feedback center and creating an
entry there regarding the issue. I'll definitely vote for it. The Product
Feedback center is located at (watch for line wrap):
http://lab.msdn.microsoft.com/productfeedback/default.aspx
I'll also see what I can do about raising awareness at MS about this
issue.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@xxxxxxxxxxxxxxxxxxxxxxxxxxx
"Pete Davis" <pdavis68@xxxxxxxxxxxxxxxxxx> wrote in message
news:ArGdnSPCFrng3sjfRVn-rg@xxxxxxxxxxxxxxx
>I know I can use reflection to call internal, protected, and private
>methods
> in a class, but I need to instantiate an object that is public but has an
> internal constructor (The CurrencyManager class).
>
> Is there a way to do this with reflection?
>
> I'm so mad at MS about the CurrencyManager design it makes me want to
> scream. It's been causing me headaches for months.
>
> All of this would be easily fixable if I could create my own
> CurrencyManager
> derived from BindingManagerBase, and though the documentation has a "Note
> to
> inheritors" section, BindingManagerBase actually has internal virtual
> methods, so there's no way to derive from it outside of S.W.F. ARGH.
>
> Pete
>
>
.
- Follow-Ups:
- Re: Calling an internal constructor
- From: Pete Davis
- Re: Calling an internal constructor
- References:
- Calling an internal constructor
- From: Pete Davis
- Calling an internal constructor
- Prev by Date: Re: Tcp Server for several clients data conflict ?
- Next by Date: Re: Canceling selecting a different item in a ListView
- Previous by thread: Calling an internal constructor
- Next by thread: Re: Calling an internal constructor
- Index(es):
Relevant Pages
|