Re: How to implement nested dictionaries?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Mon, 24 Aug 2009 10:43:38 -0700, Siegfried Heintze <siegfried@xxxxxxxxxxx> wrote:

When in doubt, read the documentation (or the compiler error). The
"new()" constraint is required to always be the last constraint given.

http://msdn.microsoft.com/en-us/library/sd2w2ew5.aspx

Sorry -- I should have been more explicit.

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
.



Relevant Pages

  • Re: New to SQL server
    ... [CONSTRAINT constraint_name] ... | [FOREIGN KEY] ... Is the name of the database in which the table is created. ... REFERENCES permission on the type is ...
    (microsoft.public.access.adp.sqlserver)
  • Re: Modelling Disjoint Subtypes
    ... constraints one should have are foreign key references. ... exactly prevents one from using a foreign key constraint to enforce ... enforces a constraint between columns in two tables. ... columns in N tables (where there are N-1 subtypes). ...
    (comp.databases.theory)
  • Re: Foreign Key Problem errno 150
    ... CONSTRAINT `FK_tblstammblatt_aufsteck` FOREIGN KEY REFERENCES ... So interpretiere ich die Anleitung. ...
    (de.comp.datenbanken.mysql)
  • Re: Use a variable number of fields
    ... it) that embedding logic and business rules into the underlying data ... REFERENCES Classes, ... CHECK constraint can be replaced by a record-level Validation Rule. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Modelling Disjoint Subtypes
    ... the only constraints one should have are foreign key references. ... I think the answer is that a foreign key constraint enforces a constraint between columns in two tables. ... these tables also have a primary key K which references K as a foreign key. ...
    (comp.databases.theory)