Fixed and submitted (including DLLs). Another cut/copy/paste error
when creating the new base class...
We need more unittests, i thought i had tests that cover this... What
was your code doing to trigger this error?
Frank Mantek
Google
On Oct 8, 2007, at 2:32 PM, Kulvinder Singh wrote:
> Hi,
>
> I was trying to update an existing event in Google and got the
> follwong error :
>
> Unable to cast object of type 'Google.GData.Extensions.Where' to
> type 'Google.GData.Extensions.When'.
>
> Source : Google.GData.Extensions
>
> StackTrace : at Google.GData.Extensions.ExtensionCollection.OnClear
> () in Google.GData.Extensions\extcollections.cs:line 130
>
> at System.Collections.CollectionBase.Clear()
>
>
> and when i looked at this line 130 :
>
>
> /// <summary>
>
> /// base class to take an object pointer with extension information
>
> /// and expose a localname/namespace subset as a collection
>
> /// that still works on the original
>
> /// </summary>
>
> public class ExtensionCollection : CollectionBase
>
> {
>
>
> protected override void OnClear()
>
> {
>
> for (int i=0; i< this.Count;i++)
>
> {
>
> this.atomElement.ExtensionElements.Remove((When)List[i]);
>
> }
>
> }
>
>
> }
>
>
>
> Can anybody tell me why there is Casting of List[i] to "When" object ?
>
>
> Thanks
>
> Kulvinder Singh
>
>
>
> Need a vacation? Get great deals to amazing places on Yahoo! Travel.
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-calendar-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---