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
____________________________________________________________________________________
Pinpoint customers who are looking for what you sell.
http://searchmarketing.yahoo.com/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---