Calling an internal constructor
- From: "Pete Davis" <pdavis68@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 7 Apr 2005 09:29:26 -0500
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: Nicholas Paldino [.NET/C# MVP]
- Re: Calling an internal constructor
- Prev by Date: System.Runtime.InteropServices.Marshal.SizeOf(a) = 1 ?
- Next by Date: Canceling selecting a different item in a ListView
- Previous by thread: System.Runtime.InteropServices.Marshal.SizeOf(a) = 1 ?
- Next by thread: Re: Calling an internal constructor
- Index(es):
Relevant Pages
|