我已经在我的项目中创建了一个WCF服务,并且我在服务器端使用了服务器端和客户端端通过引用的一些类。WCF对象引用方法丢失
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
命名空间DataEntities {
[DataContract]
public class PlanEntriesData
{
private ObservableCollection<entry> entries;
public PlanEntriesData()
{
entries = new ObservableCollection<Entry>();
}
[DataMember]
public ObservableCollection<Entry> Entries
{
get { return entries; }
set { entries = value; }
}
public string helloWorld()
{
return "hello";
}
}
}
的问题是在客户端的对象没有的helloWorld()方法。任何人都可以帮助我如何获得方法?
问候 sushiBite
我希望能解决这个问题:P谢谢 – sushiBite 2010-09-21 09:05:36