Re: [Mono-dev] System.Collections.Generic.Dictionary.CopyTo inaccessible due to protection level

2007-11-25 Thread Antti S. Lankila
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

Re: [Mono-dev] System.Collections.Generic.Dictionary.CopyTo inaccessible due to protection level

2007-11-25 Thread Leszek Ciesielski
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.

Re: [Mono-dev] System.Collections.Generic.Dictionary.CopyTo inaccessible due to protection level

2007-11-25 Thread Alan McGovern
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

Re: [Mono-dev] System.Collections.Generic.Dictionary.CopyTo inaccessible due to protection level

2007-11-25 Thread Antti S. Lankila
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%

Re: [Mono-dev] System.Collections.Generic.Dictionary.CopyTo inaccessible due to protection level

2007-11-25 Thread Valentin Sawadski
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

[Mono-dev] System.Collections.Generic.Dictionary.CopyTo inaccessible due to protection level

2007-11-25 Thread Antti S. Lankila
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