我在VB中很糟糕,我试图在VB中转换下面的C#函数,使我遇到了很多错误...有人可以帮助我将其转换为VB。对于VB中的每个功能
C#
foreach (Google.GData.Client.IExtensionElementFactory property in googleEvent.ExtensionElements)
{
ExtendedProperty customProperty = property as ExtendedProperty;
if (customProperty != null)
genericEvent.EventID = customProperty.Value;
}
我有多个错误的转换:
For Each Google.GData.Client.IExtensionElementFactory property in googleEvent.ExtensionElements
ExtendedProperty customProperty = property as ExtendedProperty
If (customProperty <> null) Then
genericEvent.EventID = customProperty.Value
End If
Next
如果您给我们提供了错误信息,这将有所帮助。 – 2011-05-13 19:59:05
太多“我也是”同一确切代码的答案。有人可以锁定这个问题吗? – 2011-05-13 20:05:58