Alan McGovern wrote:
> Thats invalid code. If you want to access the 'CopyTo' method, you
> have to cast the dictionary as an
> ICollection>.
>
> Alan.
Oh. Thanks for enlightening me.
Sorry for troubling you.
--
Antti
___
Mono-devel-list mailing lis
On Nov 25, 2007 2:14 PM, Alan McGovern <[EMAIL PROTECTED]> wrote:
> Thats invalid code. If you want to access the 'CopyTo' method, you have to
> cast the dictionary as an ICollection object>>.
As MSDN states:
http://msdn2.microsoft.com/en-us/library/1e8ecdh9.aspx
This is explicit implementation.
Thats invalid code. If you want to access the 'CopyTo' method, you have to
cast the dictionary as an ICollection>.
Alan.
> *Sigh*. Let this test program demonstrate:
>
> [EMAIL PROTECTED]:~/mono-hacks% gmcs bug.cs -o bug.exe
> warning CS8029: Compatibility: Use -out:FILE instead of --output FILE
Valentin Sawadski wrote:
> It explicitly implements copy to in line 643 and 653. So CopyTo is
> publicly available. If you refer to the CopyTo at line 275, this is
> being called by the explicit implementation of it.
>
*Sigh*. Let this test program demonstrate:
[EMAIL PROTECTED]:~/mono-hacks%
Hello,
On Sun, 2007-11-25 at 14:45 +0200, Antti S. Lankila wrote:
> The Dictionary.CopyTo appears to miss the "public" qualifier, thus
> making it impossible for client code to make use of this method.
>
It explicitly implements copy to in line 643 and 653. So CopyTo is
publicly available. If y
The Dictionary.CopyTo appears to miss the "public" qualifier, thus
making it impossible for client code to make use of this method.
--
Antti
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono