Re: How to implement nested dictionaries?
- From: "Peter Duniho" <no.peted.spam@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 24 Aug 2009 14:16:04 -0700
On Mon, 24 Aug 2009 10:43:38 -0700, Siegfried Heintze <siegfried@xxxxxxxxxxx> wrote:
When in doubt, read the documentation (or the compiler error). TheSorry -- I should have been more explicit.
"new()" constraint is required to always be the last constraint given.
http://msdn.microsoft.com/en-us/library/sd2w2ew5.aspx
You _still_ should be more explicit.
Yes, I had already discovered
that the new constraint must be the last one thru trial and error. However,
when I move IXMLSerializable to be the first ancestor my references to
"base" do not work.
What do you mean by "ancestor"? The only code example you've posted so far, IXMLSerializable isn't an ancestor, it's a constraint.
And what do you mean by "do not work"? In what way does your reference to "base" "not work"?
How do I explicitly call the functions of Dictionary if it is not the first
ancestor?
What do you mean by "it"? In the sentence you wrote, "it" would refer to "Dictionary" (that being the precedent noun). But in the only code example you've posted so far, Dictionary<TKey, TValue> is the _only_ ancestor already. How does that not make it the first one?
I need to call the indexer function of Dictionary inside my
indexer function.
And why can't you?
If you're going to ask why your code doesn't work, you need to post the code as well as describe what about the code doesn't work. Just saying "it doesn't work" and not showing any code provides no useful information to anyone who might answer.
Pete
.
- Follow-Ups:
- Re: How to implement nested dictionaries?
- From: Siegfried Heintze
- Re: How to implement nested dictionaries?
- References:
- How to implement nested dictionaries?
- From: Siegfried Heintze
- Re: How to implement nested dictionaries?
- From: Peter Duniho
- Re: How to implement nested dictionaries?
- From: Siegfried Heintze
- Re: How to implement nested dictionaries?
- From: Peter Duniho
- Re: How to implement nested dictionaries?
- From: Siegfried Heintze
- How to implement nested dictionaries?
- Prev by Date: Re: TableLayoutPanel problem
- Next by Date: Re: TableLayoutPanel problem
- Previous by thread: Re: How to implement nested dictionaries?
- Next by thread: Re: How to implement nested dictionaries?
- Index(es):
Relevant Pages
|