[Mono-osx] [MonoMac] Adding WebKit DOM interfaces

Alexander Shulgin alexander.shulgin at yessoftware.com
Wed Nov 10 11:28:55 EST 2010


On 09.11.2010 18:34, Miguel de Icaza wrote:
>
>> I have very little experience in C# generics, so someone will need to
>> guide me while I'm adding more support for IEnumerable.  Do I need to
>> copy-paste the code replacing the type name or there's a better method
>> using generics and/or inheritance?
>
> We should examine this on a case-by-case basis.

OK, here's what I currently got with generic enumerator (attached).  Is 
this any good?

I don't see how it could be further reduced, but at least the enumerator 
code is not duplicated.  We can use the same generic enumerator for 
e.g., DomCssStyleDeclaration.

--
Regards,
Alex
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: DomNamedNodeMap.cs
Url: http://lists.ximian.com/pipermail/mono-osx/attachments/20101110/0464e46c/attachment.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: DomNodeList.cs
Url: http://lists.ximian.com/pipermail/mono-osx/attachments/20101110/0464e46c/attachment-0001.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: IIndexedContainer.cs
Url: http://lists.ximian.com/pipermail/mono-osx/attachments/20101110/0464e46c/attachment-0002.pl 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: IndexedContainerEnumerator.cs
Url: http://lists.ximian.com/pipermail/mono-osx/attachments/20101110/0464e46c/attachment-0003.pl 


More information about the Mono-osx mailing list