我的c#項目中有一個dll中的vb.net基類。我在c#中創建了派生類。我用它的所有屬性填充C#類,包括來自vb類的基本屬性。Webservice:並非所有顯示在客戶端上的屬性
現在我通過web服務(c#)將它們發送給jQuery客戶端。但在客戶端上,我只能看到vb屬性?
任何人都有線索?
public class FilmItem : ContentItem // ContentItem is from VB DLL
{
public string Zender { get; set; }
public string Jaar { get; set; }
}
[WebMethod]
public IEnumerable GetContentItems(VBLib.GridRequest gridRequest)
{
ContentCache contentCache = new ContentCache();
return contentCache.GetFilms(gridRequest); // gives back a List<FilmItem>
}
剛剛發現,如果我刪除了vb.net類,所有屬性都出現了從C#類的罰款。還發現vb.net是這樣聲明的:
Public Class ContentItem
Inherits System.Collections.Generic.Dictionary(Of String, Object)
Implements IContentItem
難道是字典或界面? (其中總結了性能我所看到的)
問候, 亨克
請張貼一些示例代碼。 – Alex 2009-07-16 14:41:47